Create 4 - Skipping.py

This commit is contained in:
Lukas Baumann 2021-02-18 19:07:20 +01:00 committed by GitHub
parent 14143af154
commit fc57152e0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
07/c/4 - Skipping.py Normal file
View File

@ -0,0 +1,9 @@
counter = 0
while True:
lineIn = input()
if lineIn=='SKIP':
continue
if lineIn=='END':
break
counter = counter+1
print('line', counter, '=', lineIn)