Computer Science, asked by hackeraryan004, 2 days ago

Write a Python program that prints all the numbers from 0 to 6 except
3 and 6.

Answers

Answered by princess2216
0

Answer:

I dont know

sorryyyyyy

Answered by shilpa85475
1

From the above series 0,1,2,3,4,5,6

Only the numbers 3 and 6 should not be printed else number will be printed.

Explanation:

Expected Output : 0 1 2 4 5

for num in range(7):

   if num==3 or num==6:

       continue

   else:

       print(num)

o/p:

0

1

2

4

5

Similar questions