Question: Write an algorithm in Python 3 which prints odd numbers from 1 up to $k$. Be careful about syntax rules such indentations. For example,

Write an algorithm in Python 3 which prints odd numbers from 1   

Write an algorithm in Python 3 which prints odd numbers from 1 up to $k$. Be careful about syntax rules such indentations. For example, if $k=5$ then the output will be as follows. 1 3 5 CS.VS.953

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python3 code to print the odd numbers from 1 to k prom... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!