Counting Sheep

Counting Sheep is based on the idea of counting sheep to fall asleep, instead we are writing a program to do it for us. This whole program is looping, increasing the number of sheep each time
-
s = int(input("How many sheep: "))
i = 1
while i < s + 1:
  print(i, "sheep")
  i += 1

No comments:

Post a Comment