Example & Tutorial understanding programming in easy ways.

How we make a dictionary using two list in Python ?

program:

l1=[1,2,3]

l2=["first","Second","Third"]

print(dict(zip(l1,l2)))

output:

{1: 'first', 2: 'Second', 3: 'Third'}


Read More →