Advertisement
Xlorddx

Untitled

Aug 15th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. print('Напиши какое-нибудь слово')
  2. first = str(input())
  3. words = []
  4. words.append(first)
  5. print("Я говорю " + words[0])
  6. while True:
  7.     print("Напиши еще одно слово")
  8.     p1 = str(input())
  9.     p1.lower()
  10.     if words[-1][-1] == p1[0] and p1 not in words:
  11.          words.append(p1)
  12.          print('Правильно!')
  13.     elif p1 in words:
  14.         print('Это слово было.')
  15.     else:
  16.         print('Вы неумные.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement