Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Решение с лист и тернарен оператор:
- queue = list(input().split(', '))
- print('Please go away and stop eating my sheep' if queue[-1] == 'wolf' else
- f'Oi! Sheep number {len(queue) - 1 - queue.index("wolf")}! You are about to be eaten by a wolf!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement