Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = input()
- check_for_wolf = text.split(", ")
- check_for_number = len(check_for_wolf) - 1
- for wolf in check_for_wolf:
- if wolf == "wolf" and check_for_number == 0:
- text_to_print = "Please go away and stop eating my sheep"
- elif wolf == "wolf":
- text_to_print = f"Oi! Sheep number {check_for_number}! You are about to be eaten by a wolf!"
- check_for_number -= 1
- print(text_to_print)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement