The way Python is implemented, almost all objects in the language are dicts and can be accessed with the __dict__
dunder. Which has some useful applications when transforming data.
But in the case, the interviewer was likely looking for knowledge that one is structured and maintained by indicies vs defined keys. And that searching through a dictionary is O[1] vs list that is O[N] but are inverted for deletion. So if you are doing a lot of inserts and seaeching, use a dict, but if you have something that has tons of deletions, use a list. However, there’s tricks to improve the deletion speed downside that can be used with a slight memory tradeoff.
A buddy of mine I play some x-play games with only has a PS4/5. He had some money issues a few months back and couldn’t pay for Playstation online renewal for a month (I believe he pays yearly?). I was shocked to learn they’re still charging access to play online. I keep urging him to pick up a Steam Deck with a dock, but he’s been hesitant.
I couldn’t imagine having to pay for access to online play for Steam/GOG/Ect. It’s one of the reasons I stopped buying PS and Xbox consoles.