for loop with limited values from array python code example
Example: limit for loop python
for index, item in enumerate(items):
print(item)
if index == limit:
break
for index, item in enumerate(items):
print(item)
if index == limit:
break