I'm very new to learning Python and as part of trying to get more familiar with what it, I've been messing around with writing little bits of code that do things not explicitly taught in source I'm learning from but use the same concepts.
One thing that I was trying to do was have two lists, for example list=["apple", "banana", "orange", "grape"] and otherlist=["ok", "good", "better", "best"] and using them to create a dictionary where the end result was dict={"ok":"apple","good":"banana","better":"orange","best":"grape"}.
But I couldn't figure out how to do it. To my best understanding, I'd have to iterate through both lists sort of...in parallel so as to assign the first string in 'otherlist' as the key for the first string in 'list', and so on.
I tried doing some kind of for loop, as in
for word in otherlist:
dict[word]=???
Where the "???" is where I get stuck, a since I can't figure out how to iterate through 'list' at the same time. Any help for this curious noob is appreciated! :)