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:
#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: