Advertisement
smmac72

17

Mar 30th, 2023
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. inp = input().split(', ')
  2. num = int(input())
  3.  
  4. outlist = []
  5. for i in inp:
  6.     tmp = i.split(' : ')
  7.     if int(tmp[1]) < num:
  8.         outlist.append(tmp[0])
  9.        
  10. outlist.sort()
  11. if len(outlist) > 0:
  12.     print(','.join(outlist))
  13. else:
  14.     print('Рон молодец!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement