The challenge that I'm facing is trying to figure out how to use 2 lists for a dict with one list having less items than the other. For each item in the list names, I'd like to add the item as a key in the combos dict while also adding one item from the answers list as a value to the key.. but once the smaller list reaches it's end adding values I'd like to restart from the beginning until every key has a value.
It's hard for me to google an answer because I can't really figure out how to accurately describe my question.
names = ["one", "two", "three"]
answers = ["yes", "no"]
combos = {}
def do_something():
#do stuff
print(combos)
do_something()
Desired output:
{"one": "yes", "two": "no", "three": "yes"}