pihta24

Айболит

Feb 2nd, 2021
656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. def search_card(name):
  2.     global base
  3.     for i, val in enumerate(base):
  4.         if val == name:
  5.             print('Ваша карта с номером {} найдена'.format(i + 1))
  6.             return
  7.     print('Ваша карта не найдена')
  8.  
  9.  
  10. def hello(name):
  11.     print('Здравствуйте, {}! Вашу карту ищут...'.format(name))
Advertisement
Add Comment
Please, Sign In to add comment