OtsoSilver

Untitled

Jan 16th, 2022
1,134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. command = ''
  2. import random
  3. run = True
  4. list_greeting = ['Приветствую', 'Добрый день!', 'Здравствуйте', "Привет ♂Master♂!"]
  5. while run:
  6.     command = input("Введите команду: ")
  7.     print(f'Вы ввели: {command}')
  8.     if command == 'exit':
  9.         break
  10.     elif command == 'start':
  11.         print(random.choice(list_greeting))
  12. run = True
  13.  
Advertisement
Add Comment
Please, Sign In to add comment