Advertisement
12311k

Untitled

Aug 29th, 2021
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. # Объявите функцию здесь
  2. def print_friends_count(friends_count):
  3. if friends_count == 0:
  4. print('У тебя нет друзей')
  5. elif friends_count == 1:
  6. print('У тебя', friends_count, 'друг')
  7. elif friends_count >= 2 and friends_count <= 4:
  8. print('У тебя', friends_count, 'друга')
  9. elif friends_count >= 5 and friends_count < 20:
  10. print('У тебя', friends_count, 'друзей')
  11. else:
  12. print('Ого, сколько у тебя друзей! Целых', friends_count)
  13. print_friends_count(1)
  14. print_friends_count(11)
  15. print_friends_count(56)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement