What is For Loop in Python?

For loop is used to repeat a code multiple times.

It goes through each Value in a Range, one by one, executes the code for each item.

How it works:

You will write a code inside For Loop.

It applies that code to each values in the Range, one by one. You will save time doing this instead of applying the code separately for each values.

It only stops the process when it reaches last value in a range.

Comments

Popular posts from this blog

What is Artificial Intelligence? What is Machine Learning? What is Data Science? how they are related to each other?

Linear Algebra - What is it?

What is a Python Library?