I have the following code using a for loop:
total = 0 for num in range(101): total = total + num print(total)
Now the
If you are coming from other programming languages like C, C++ or Java then do not confuse with for in loop of python.
C
C++
Java
for in
In python, for in loop pick one item from list of items and does something with help of the picked item.