From fc57152e0bbde95140ad400774495aa15ffa44c9 Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Thu, 18 Feb 2021 19:07:20 +0100 Subject: [PATCH] Create 4 - Skipping.py --- 07/c/4 - Skipping.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 07/c/4 - Skipping.py diff --git a/07/c/4 - Skipping.py b/07/c/4 - Skipping.py new file mode 100644 index 0000000..5aa38f3 --- /dev/null +++ b/07/c/4 - Skipping.py @@ -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)