List({Dictionaries}) | SoloLearn: Learn to code for FREE!



I have no idea why my list goes out of order when I make my dictionary a list and print it!! Please Help Me! nums = {“a” , ”b” , ”c” , ”d”} print (list(nums)) Prints: ['b', 'c', 'a', 'd']

11/20/2019 7:30:22 PM


3 Answers

New Answer


it's not a've got a "set" ...unordered.


A dictionary must have key:value pairs.


thanks dude I was so confused until i learned about sets xd