Advertisement
DenisMagic

Untitled

Mar 1st, 2020
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. import random
  2. name = input("Дай имя боту: ")
  3. print("Имя присвоено")
  4. def bot():
  5.     answer = input("Ответ: ")
  6.     hello = "Приветики", "Хелло", "Здарова", "Приветствую", "Привет"
  7.     list = 'Привет', 'привет', 'Прив', 'Хай', 'хай', 'Превет', 'превет', 'Здароу', 'здароу', 'Здарова'
  8.     while answer == list:
  9.         helloy = random.choice(hello)
  10.         print(name + helloy)
  11.         bot()
  12. bot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement