Nov-18-2019, 03:27 AM
When you loop through a dictionary, each time through the loop you get one key. You assign that to self.keys, but each time you do it, you overwrite what was there before. So whatever the last key is, that's what self.keys ends up as.
If you want all of the keys, I would suggest
If you want all of the keys, I would suggest
self.keys = list(self.key_values.keys())
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures