umarov99

Untitled

Jun 28th, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. def print_friends_count(friends_count):
  2. for i in range(1, 11):
  3. print_friends_count(i)
  4. remainder = friends_count % 10
  5. if friends_count == 0:
  6. print('У тебя нет друзей')
  7. elif remainder == 0 or remainder >= 5 or (10 <= friends_count <= 19):
  8. print('У тебя', friends_count, 'друзей')
  9. elif remainder == 1:
  10. print('У тебя', friends_count, 'друг')
  11. else:
  12. print('У тебя', friends_count, 'друга')
Advertisement
Add Comment
Please, Sign In to add comment