why does the pair - “Red”: “Stop” after pop out of the dictionary become “Red”, “Stop”?
All the methods of dictionary
dict in python which contains the word item returns tuple, so if you call either
items(), you will get tuple(s).
I hope I have answered your question but if there is any confusion please feel free to ask me. Thank you so much for reaching out to us.