Python For Loop Syntax and Examples
In computer science, a for-loop (or simply for loop) is a control flow statement for specifying iteration, which allows code to be executed repeatedly.
for item in sequence: execute expression
for i in range(1,6): print(i)
items = ["apple","banana","egg"] for index, item in enumerate(items): print(index,item)
Md Obydullah is a software engineer and full stack developer specialist at Laravel, Django, Vue.js, Node.js, Android, Linux Server, and Ethichal Hacking.