Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = input() #Найти слово на букву w, не стоящее в конце предложения
- text = ' ' + text
- text = text[text.find(' w') + 1: ]
- text = text[:text.find(' ')]
- print(text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement