so, in my book state that:
dict1 = {'satu': 100, 'dua': 100, 'tiga': 100, 'empat':200}
set1 = set(dict1)
set1
{'tiga', 'dua' 'empat' 'satu'}
and while i try it, the code says:
dict1 = {'satu': 100, 'dua': 100, 'tiga': 100, 'empat':200}
set1 = set(dict1)
set1
{'satu', 'dua' 'empat' 'tiga'}
am i mising something?
My code here[text]
Book Code description here
>Solution :
In the documentation it clearly says that:
A set is an unordered collection with no duplicate elements.
So the order doesn’t count, the only thing that matters, in your case, is that the elements of the set are the same as the ones displayed in the book.