iter()
` function :my_tuple = (1, 2, 3, 4, 5)
my_iterator = iter(my_tuple)
# Iterate through the iterator
for x in my_iterator:
print(x)
1
2
3
4
5
my_tuple
` with 5 integers. We then create an iterator from the tuple using the `iter()
` function and assign it to `my_iterator
`. We can then loop through the iterator using a `for
` loop and print out each value in the tuple.