Write a Python program that prints all the numbers from 0 to 6 except 3 and 6. Note : Use 'continue' statement. Expected Output : 0 1 2 4 5
Added by Paul C.
Step 1
In Python, you can use the `range()` function to generate this sequence of numbers. The `range(7)` function will generate numbers from 0 to 6. Show more…
Show all steps
Your feedback will help us improve your experience
Vysakh M and 99 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
by python Write a program that produces the following output for the given input. Input Output 0 1 1 2 2 4 3 8 4 16 5 32 6 64
Akash M.
Aarya B.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD