Important Notice:

Demonstration of continue

Demonstration of continue

11 views 1 min read
Program 15: Demonstration of continue
 
for i in range(1, 11):
    if i == 6:
        continue

    print(i)

Output:

1
2
3
4
5
7
8
9
10

Explanation:
6 को continue के कारण skip कर दिया गया।

Related Notes