I was looking for how to create nested list from dictionary. Here is the given Dictionary.
Dict={'Jason Seifer': ['Ruby Foundations', 'Ruby on Rails Forms', 'Technology Foundations'], 'Kenneth Love': ['Python Basics', 'Python Collections'],'Jason Bourne':['black berry','mango','potato','oli','key'],'fruits':['cherry','pineapple','banana','coconut']}
Excepted output:
[['Jason Bourne', 5], ['Kenneth Love', 2], ['fruits', 4], ['Jason Seifer', 3]]
Here order doesn't matter
See Question&Answers more detail:os