Use of continue statement in python

#Write a program to demonstrate the use of continue statement.

for val in "Aryan Computers":

    if val == "n":                 #Here n is skipped and continue to  next iteration

        continue

    print(val)

Output:

 


Popular posts from this blog

Python Programming Practical no 1

Python Progrmming Practical No 3