Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. def print_friends_count(friends_count):
  2. if friends_count == 1:
  3. print('У тебя 1 друг')
  4. elif 2 <= friends_count <= 4:
  5. print('У тебя ' + str(friends_count) + ' друга')
  6. elif friends_count >= 5:
  7. print('У тебя ' + str(friends_count) + ' друзей')
  8.  
  9.  
  10. for friends_count in range(1, 11):
  11. print_friends_count(friends_count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement