Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user_dict = {
- 'Привет': 'И тебе шалом',
- 'Что делаешь?': 'Программирую',
- 'Как дела?': 'Хорошо!',
- 'На каком языке программируешь': 'на Python',
- 'И как успехи?': 'Хорошо',
- 'Досвидос': 'Чао'
- }
- def ask_user():
- while True:
- user_input = input('Введите: ')
- if user_input == user_dict[0]:
- print(user_dict.get('Привет'))
- if __name__ == "__main__":
- ask_user()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement