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