Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. count = 3
  2. last_number = int(str(count)[-1])
  3.  
  4. if count == 0:
  5.     print('У вас нет сообщений')
  6. elif count == 1:
  7.     print('У вас ' + str(count) +' сообщение')
  8. elif last_number in range(2, 4) and count not in range(10, 20):
  9.     print('У вас ' + str(count) +' сообщения')
  10. else:
  11.     print('У вас ' + str(count) + ' сообщений')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement