For Loop Syntax in Python

For Loop in Python

The for loop that is used is python,whenever we need repetition or iterate over a sequence .For Loop is one the frequently using loop in python.For loop has simple syntax .Let see the for loop syntax in details.

Here we are going to iterate over a sequence


#For Loop Syntax in Python

cars = ["SWIFT", "BELANO", "BMW"]
for x in cars:
  print(x) 

Output

SWIFT
BELANO
BMW

See All answers

  1. I was more than happy to search out this web-site.I wanted to thanks to your time for this excellent read!! I undoubtedly having fun with each little bit of it and I’ve you bookmarked to take a look at new stuff you blog post.

My Thought

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

Our Tool : hike percentage calculator