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