I tried the below code:
squared = (map(lambda x: x**2, items))
print(list(squared))
print(list(squared))
First, it prints the list of squared numbers, again printing the same thing prints an empty list. I want to know what is the reason behind this.