Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. stringN = ''
  2. count = int(0)
  3. z = -1
  4. print('Вводите строки, остановка словом СТОП ')
  5. while stringN != 'СТОП':
  6.     count += 1
  7.     stringN = input()
  8.     if 'кот' in stringN or 'Кот' in stringN:
  9.         z = count
  10. print(str(z))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement