Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def print_friends_count(friends_count):
- for i in range(1, 11):
- print_friends_count(i)
- remainder = friends_count % 10
- if friends_count == 0:
- print('У тебя нет друзей')
- elif remainder == 0 or remainder >= 5 or (10 <= friends_count <= 19):
- print('У тебя', friends_count, 'друзей')
- elif remainder == 1:
- print('У тебя', friends_count, 'друг')
- else:
- print('У тебя', friends_count, 'друга')
Advertisement
Add Comment
Please, Sign In to add comment