Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def function(a):
- if len(a) == 0:
- return []
- return a.keys()
- print(function({1:1, 2:2, 3:3}))
- print(function({}))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement