DenisMagic

Untitled

Mar 1st, 2020
102
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     else:
  13.         print("Ошибка")
  14. bot()
RAW Paste Data