Printing only the odd numbers
Write code · Basic · §7.1 Repeating
Print only the odd numbers from 1 to n, one per line.
Starter code
n = 15Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.