cara mencalonkan diri di python
for i in range(5):
print(i)
OUTPUT
0
1
2
3
4
Fancy Flatworm
for i in range(5):
print(i)
OUTPUT
0
1
2
3
4
a_list = [1,2,3,4,5]
#this loops through each element in the list and sets it equal to x
for x in a_list:
print(x)
iteration_number = 10 # can be any amount or how many times you want to iterate
for iteration in range(iteration_number): # how many iterations - iteration_number variable
print(iteration)