#Multiple listsmodel=['A', 'B', 'C', 'D']launched=[1983,1984,1984,1984]discontinued=[1986, 1985, 1984, 1986]
#Dictionary with list comprehensionkeys=['model','launched','discontinued']vals=[model, launched,discontinued]data = {key:vals[n] for n, key in enumerate(keys)}
#Convert dict to dataframedf=pd.DataFrame(data)display(df)
parents = [father, mother]
parents = {parent:1 - P["mutation"] if parent in two_genes else 0.5 if parent in one_gene else P["mutation"] for parent in parents}
# create a list comprehension with country and code:Country_code = [('China', 86), ('USA', 1),('Ghana', 233), ('Uk', 44)]
# use iterable method to show results{key: value for (key, value) in Country_code}