
liste = [1,2,3,4,5]

iterator = iter(liste)

# try:
#     print(next(iterator))
#     print(next(iterator))
#     print(next(iterator))
#     print(next(iterator))
#     print(next(iterator))
#     print(next(iterator))
# except StopIteration:
#     print("Hata ! İndex dışına çıkıldı")

print(next(iterator))






