+ 2
Why does the join method in python return keys only when used on a dict?
myFriend = {"name": "Peter", "age": "16"} x = ', '.join(myFriend) print(x)
2 Respuestas
+ 3
Såñtösh Màràvi thank you but not clear. I mean I still don't get it
+ 2
Because key are only print in immutable order but values doesn't .
That's why it join only key's .