For Loop
all_fruits = ['apple', 'peach', 'banana']
for fruit in all_fruits:
print(fruit)In Range Loop
for number in range (1,10)
print(number)Number b (10 in example) is not included
If you want to include a step, you can add a third number:
for number in range (1,100,5)
# This will increment in 5While Loop
while true_condition:
do_this()