Programming Examples

Write a Program to print all numbers from 0 to 6 except 3 and 6.


Write a Program to print all numbers from 0 to 6 except 3 and 6.

Solution

for i in range(7):
    if i == 3:
        continue
    print(i)
Output

0

1

2

4

5

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad