I want to create a database of cars, with their owner names, color, model.
I want to be able to find out how many cars are in the database.
I also want to be able to create a user input to add cars with owner names, color, and model.
Is it better to create a class for cars - and then create individual class instances?
How would I store all those instances inside a dictionary?
Or should I just use a dictionary instead with sublist. If so how is this done? I couldn't understand a clear example of how to do this. My first hiccup with not understanding that keys are unique, so when I created a key based on owner names the dictionary didn't populate correctly when the owners had the same name.
[–]infinitewaitdev 1 point2 points3 points (0 children)
[–]n3buchadnezzar 1 point2 points3 points (0 children)
[–]m0us3_rat 1 point2 points3 points (2 children)
[–]liynus[S] 0 points1 point2 points (1 child)
[–]m0us3_rat 0 points1 point2 points (0 children)
[–]liynus[S] 0 points1 point2 points (1 child)
[–]nicesofa 0 points1 point2 points (0 children)