Aug-09-2023, 10:13 PM
oooh, i didn't think about comparing .keys() to compare the insertion order. but that seems to work.
dx = {} dx['a'] = 1 dx['b'] = 2 dx['c'] = 3 dy = {} dy['c'] = 3 dy['b'] = 2 dy['a'] = 1 print(dx==dy) print(dx.keys()) print(dy.keys())
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.