python for loop example

Here is the python for loop example code

cars= ["BMW", "AUDI", "TESLA"]
for x in  cars :
  print(x)

python for loop

Here is the python for loop example2

for x in "python": print(x)

OutPut:
p
y
t
h
o
n

My Thought

Your email address will not be published. Required fields are marked *

Our Tool : hike percentage calculator