Example #1
0
def get_drink_type():
  res = input('What type of drink would you like? \n[a] Brewed Coffee \n[b] Mocha \n[c] Latte \n> ')

  if res == 'a':
    return 'brewed coffee'
  elif res == 'b':
    return order_mocha()
  elif res == 'c':
    return order_latte()
  else:
    print_message()
    return get_drink_type()
Example #2
0
def get_drink_type():
    res = input(
        "Какой напиток вы хотите заказать? \n[a] Американо \n[b] Мокко \n[c] Латте \n> "
    )

    if res == "a":
        return order_americano()
    elif res == "b":
        return order_mocha()
    elif res == "c":
        return order_latte()
    else:
        print_message()
        return get_drink_type()