#!/usr/bin/python3 # ================================================================== # From YouTube video: # 10 Python Tips and Tricks For Writing Better Code # # See itertools module(library) for more information on zip, etc. #=================================================================== names = ['Peter PArker', 'Clark Kent', 'Wade Wilson', 'Bruce Wayne'] heros = ['Spiderman', 'Superman', 'Deadpool', 'Batman'] universes = ['Marvel', 'DC', 'Marvel', 'DC'] for name, hero, universe in zip(names,heros,universes): print(f'{name} is actually {hero} from {universe}')