Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = 3
- last_number = int(str(count)[-1])
- if count == 0:
- print('У вас нет сообщений')
- elif count == 1:
- print('У вас ' + str(count) +' сообщение')
- elif last_number in range(2, 4) and count not in range(10, 20):
- print('У вас ' + str(count) +' сообщения')
- else:
- print('У вас ' + str(count) + ' сообщений')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement