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