Here is the python for loop example code
cars= ["BMW", "AUDI", "TESLA"]
for x in cars :
print(x)
Here is the python for loop example2
for x in "python": print(x)
OutPut:
p
y
t
h
o
n
Tutorialshore
Here is the python for loop example code
cars= ["BMW", "AUDI", "TESLA"]
for x in cars :
print(x)
Here is the python for loop example2
for x in "python": print(x)
OutPut:
p
y
t
h
o
n