My QA Projects

QA Projects I was involded.

View on GitHub

Iterating Over Collections

my_list = [1, 2, 3, 4, 5]
for item in my_list:
    print(item)

Iterator Protocol

my_iter = iter(my_list)
print(next(my_iter))  # Output: 1
print(next(my_iter))  # Output: 2

Built-in Iterators:

for i in range(5):
    print(i)  # Output: 0 1 2 3 4
for index, value in enumerate(my_list):
    print(index, value)