Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. # объявите функцию здесь
  2. def print_friends_count(friends_count):
  3. if friends_count == 1:
  4. print('У тебя 1 друг')
  5. elif 2 <= friends_count <= 4:
  6. print('У тебя ' + str(friends_count) + ' друга')
  7. elif friends_count >= 5:
  8. print('У тебя ' + str(friends_count) + ' друзей')
  9. print_friends_count(4)
  10. print('у тебя 4 друга')
  11. print_friends_count(5)
  12. print('у тебя 4 друга')
  13. print_friends_count(6)
  14. print('у тебя 4 друга')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement