Nov-08-2021, 02:30 AM
You need to iterate through the list, check if key in in the dictionary, and if so display results
pseudo code:
the :8 and :10 are qualifiers that indicate width of field.
pseudo code:
for each item in list_1 for each key in keys display key and value (no newline) display newlineto display without newline, use like:
print(f"{key:8} {adict[key]:10} ", end="")
the :8 and :10 are qualifiers that indicate width of field.