Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list_animals = input()
- sheep_cntr = 0
- for i in range(len(list_animals)-1, -1, -1):
- if list_animals[len(list_animals)-1] == "f":
- print("Please go away and stop eating my sheep")
- break
- if list_animals[i] == "s":
- sheep_cntr +=1
- if list_animals[i] == "f":
- print(f"Oi! Sheep number {sheep_cntr}! You are about to be eaten by a wolf!")
Advertisement
Add Comment
Please, Sign In to add comment