Advertisement
KateWilson

Слово на W

Jul 24th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. text = input()   #Найти слово на букву w, не стоящее в конце предложения
  2. text = ' ' + text
  3. text = text[text.find(' w') + 1: ]
  4. text = text[:text.find(' ')]
  5. print(text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement