l1=[“apple”,“pear”,“guava”,“papaya”]
l2=[23,56,78,90]
p=zip(l1,l2)
print§
It shows-
<zip object at 0x10918c480>
it doesn’t display the dictionary created with the 2 lists.
l1=[“apple”,“pear”,“guava”,“papaya”]
l2=[23,56,78,90]
p=zip(l1,l2)
print§
It shows-
<zip object at 0x10918c480>
it doesn’t display the dictionary created with the 2 lists.
Hey @yashikakhurana00, if you want to print the content you can do so by adding * before p,
as in print(*p).
Hope this resolved your doubt.
PLz mark the doubt as resolved in my doubts section. 