python dictionary comprehension keys 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"})
square_dict = {num: num*num for num in range(1, 11)}
print({i:j for i,j in zip(txt_list,num) if i!="All"})