(Sep-08-2021, 07:29 PM)muzikman Wrote: Greetings,You mention a
I am trying to loop through a list of move titles and their corresponding rating. ex.
Title = 'Rocky', Rating = 5
list
and then there is an ex. that is not a list or maybe you just missed the [] and the correct formatting?(Sep-08-2021, 07:29 PM)muzikman Wrote: How can I continue to add more titles and associative rating to the dictionary without overwriting?Then ask about a
mydict = {'Rocky': 5, 'Rocky II': 4,...}Something like that? or how would I do it with title and rating keys? Nested?
I am looking for something similar to a lists append method.
I want to be able to iterate over this dictionary when it's full.
Thanks in advance
Matt
dict
, do you have a list
and a dict
or maybe only a dict
?Please are you able to make clear what your starting data is, how you want to alter it and what it should look like afterwards?