Advertisement
George_Ivanov05

0.1

Jun 14th, 2022
890
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. def function(a):
  2.     if len(a) == 0:
  3.         return []
  4.     return a.keys()
  5.  
  6.  
  7. print(function({1:1, 2:2, 3:3}))
  8. print(function({}))
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement