SHARE
TWEET

Untitled

a guest Feb 24th, 2020 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def print_friends_count(friends_count):
  2.     for i in range(1, friends_count):
  3.         print(i)
  4.     if i == 1:
  5.         print('У тебя 1 друг')
  6.     elif 2 <= i <= 4:
  7.         print('У тебя ' + str(i) + ' друга')
  8.     elif i >= 5:
  9.         print('У тебя ' + str(i) + ' друзей')
  10.  
  11. print_friends_count(10)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top