How to iterate nested lists with another list to create a dictionary of lists Python
问题 I'm using Mibian module to calculate call options. I have a list of three nested lists. Each nested list represent strike prices. Each nested list has their own respective days left to expiration, i.e. my_list[2] has 30 days left. import mibian as mb import pandas as pd my_list = [[20, 25, 30, 35, 40, 45], [50, 52, 54, 56, 58, 60, 77, 98, 101], [30, 40, 50, 60]] days_left = [5, 12, 30] my_list[2] [30, 40, 50, 60] days_left[2] 30 The structure of a Mibian Black-Scholes code for calculating the