numbers = [2, 4, 6] # Variable iterable
iterador = iter(numbers) # Objeto Iterador

next(numbers)
next(iterador)

numbers = [2, 4, 6]
squares = [n**2 for n in numbers]

squares = (n**2 for n in numbers)
squares

numbers = [2, 4, 6] # Variable iterable
e = enumerate(numbers)
next(e)
list(enumerate(numbers))

numbers = [2, 4, 6] # Variable iterable
for i, num  in enumerate(numbers):
    print(i," valor: ", num)

a71ffc48542c09dda558770ec42a5c7ee7528df6
<mask token>

<mask token>
next(numbers)
next(iterador)
<mask token>
squares
<mask token>
next(e)
list(enumerate(numbers))
<mask token>
for i, num in enumerate(numbers):
    print(i, ' valor: ', num)

numbers = [2, 4, 6]
iterador = iter(numbers)
next(numbers)
next(iterador)
numbers = [2, 4, 6]
squares = [(n ** 2) for n in numbers]
squares = (n ** 2 for n in numbers)
squares
numbers = [2, 4, 6]
e = enumerate(numbers)
next(e)
list(enumerate(numbers))
numbers = [2, 4, 6]
for i, num in enumerate(numbers):
    print(i, ' valor: ', num)

numbers = [2, 4, 6] # Variable iterable
iterador = iter(numbers) # Objeto Iterador

next(numbers)
next(iterador)

numbers = [2, 4, 6]
squares = [n**2 for n in numbers]

squares = (n**2 for n in numbers)
squares

numbers = [2, 4, 6] # Variable iterable
e = enumerate(numbers)
next(e)
list(enumerate(numbers))

numbers = [2, 4, 6] # Variable iterable
for i, num  in enumerate(numbers):
    print(i," valor: ", num)
