SHARE
TWEET

Untitled

a guest Aug 19th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def process_friend(name, query):
  2.     if name in DATABASE:
  3.         city = DATABASE[name]
  4.         if query == 'ты где?':
  5.             return f'{name} в городе {city}'
  6.         elif query == 'который час?':
  7.             if city not in UTC_OFFSET:
  8.                 return f'<не могу определить время в городе {city}>'
  9.             time = what_time(city)
  10.             return f'Там сейчас {time}'
  11.         else:
  12.             return '<неизвестный запрос>'
  13.     else:
  14.         return f'У тебя нет друга по имени {name}'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top