From 544942090a2cf3ec434173e64e384a101be6e8e3 Mon Sep 17 00:00:00 2001 From: EduardPrigoana Date: Sun, 30 Mar 2025 22:21:07 +0300 Subject: [PATCH] Add py/Loops/task2.py --- py/Loops/task2.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 py/Loops/task2.py diff --git a/py/Loops/task2.py b/py/Loops/task2.py new file mode 100644 index 0000000..f8a2356 --- /dev/null +++ b/py/Loops/task2.py @@ -0,0 +1,7 @@ +# Initialize a counter variable +count = 0 + +# Loop while count is less than 10 +while count < 10: + print("Potato") # Print "Potato" + count += 1 # Increment the counter by 1 \ No newline at end of file