For Loop program in Python

Simple for loop program

Source code :

for letter in "python":
    print("letters are",letter)

Output :

Letters are:p
Letters are:y
Letters are:t
Letters are:h
Letters are:o
Letters are:n

Output :


                

Comments :