Add py/Loops/task2.py
This commit is contained in:
parent
dc95d94cc3
commit
544942090a
1 changed files with 7 additions and 0 deletions
7
py/Loops/task2.py
Normal file
7
py/Loops/task2.py
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue