Answers for "continue py"

1

continue py

# Program to show the use of continue statement inside loops

for val in "string":
    if val == "i":
        continue
    print(val)

print("The end")
# Output:
# s
# t
# r
# n
# g
Posted by: Guest on April-05-2021

Python Answers by Framework

Browse Popular Code Answers by Language