Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- all_cont=['Africa','Americas','Asia','Europe','Oceania']
- def all_continents(lst):
- g = sorted(map(lambda x: x[0],
- groupby(lst,key=lambda x:x['continent'])))
- return all_cont == g if True else False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement