dictionary in list comprehension python code example
Example 1: dictionary comprehension python
square_dict = {num: num*num for num in range(1, 11)}
Example 2: dictionary comprehension python
print({i:j for i,j in zip(txt_list,num) if i!="All"})