Topic List | Page List: 1 |
---|---|
Topic | ITT: General Computer Coding Topic |
ChocoboMog123 05/24/22 2:20:56 PM #29: | darkmaian23 posted... You'd make another dictionary, because dictionaries are key value pairs and you can't have duplicate keys. If you wanted to store a lot of different data about various users, a class that encapsulates that data would likely be most appropriate.I meant that as a kind of practice problem. A class would be the most straight-forward solution, but if you just want to script something and maybe you have some things that won't change very often (like favorite color and ice cream), you can make a list of dictionaries. https://gamefaqs.gamespot.com/a/user_image/6/9/6/AAA_yAAADQ6Q.png --- "You're sorely underestimating the power of nostalgia goggles." - adjl http://www.smbc-comics.com/comics/20110218.gif ... Copied to Clipboard! |
Topic List | Page List: 1 |