After I zip two lists and print the zip object as a list, I get the desired output. But when I wanted to make another list from the zip object I get an empty list. Why this is happening?
Code:
result = zip(number_list, str_list)
# Converting iterator to list
result_list = list(result)
result_list2 = list(result)
print(result_list)
print(result_list2)
Output:
[(1, 'one'), (2, 'two'), (3, 'three')]
[]