iterated-function

How to iterate through two list in python

How to iterate through two list in python Question: I have 2 list, which i would like to iterate through and capture the selection/input from user. list1 = [‘E1’, ‘E2’, ‘E3’] list2 = [‘api1’, ‘api2’, ‘api3’, ‘api4’] def display_option(options): for env_option, type in enumerate(options,1): print("t{}. {}".format(env_option, type)) def select_option_from_list_of_values(item): while True: print("this option available for …

Total answers: 2