Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 31st, 2020 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def print_friends_count(friends_count, name=''):  # добавьте новый аргумент
  2.     if friends_count == 1:
  3.         text = '1 друг'
  4.     elif 2 <= friends_count <= 4:
  5.         text = str(friends_count) + ' друга'
  6.     elif friends_count >= 5:
  7.         text = str(friends_count) + ' друзей'
  8.     if name != '':
  9.         print(name + ', у тебя ' + text)
  10.     else:
  11.         print('У тебя ' + text)
  12. # дальше код не меняйте
  13. print_friends_count(3, 'Артём')
  14. print_friends_count(friends_count=7, name='Марина')
  15. print_friends_count(6)
  16. print_friends_count(4, name='Настя')
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