Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- names = []
- def hello(name):
- if None in query:
- names.append(name)
- number_in_queue = names.index(name)
- query[number_in_queue] = name
- print(f"Здравствуйте, {name}! Подойдите к окошку номер",number_in_queue+1)
- search_card(name)
- else:
- print(f"Простите, {name}, все окна заняты.")
- def search_card(name):
- if name in base:
- number_of_card = str((int(base.index(name))) + 1)
- print('Ваша карта с номером ' + number_of_card + ' найдена')
- else:
- print('Ваша карта не найдена')
- def good_bye(name):
- if name in names:
- print(f"До свидания, не болейте, {name}")
- else:
- print(f"Простите, {name}, дождитесь своей очереди")
- base = ["Иван", "Юлия Иванова","Петя Журиков","Князь Мамай"]
- query = [None, None, None]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement