Two different results when dealing with Zip

Viewed 27

Let have this code in a cell:

    a = ['a','b','c']
    b = [1,2,3]
    c = zip(a,b)
    list(c)

Output : [('a', 1), ('b', 2), ('c', 3)]
Now, after that when we have the code :

    list(c)

Output : []
Why that , what happen to c variable ?

1 Answers
a = ['a','b','c']
b = [1,2,3]
c = zip(a,b)
print(list(c))

Call print function in order to see the output of list 'c'

Related