Python for loops

Python for loops using len 



Python for loop:

In python for loop is used to iterate the sequence of value until the condition is satisfied from list, tuples and strings.

Syntax:

            for val in sequence:
                 Body of statement

Example:

            for i in range(1,10):
                  i=i*2
                  print("the value of range is:",i)


Comments