The answer for Conditional Statements - Excercise 10 is

var = int(input('Enter the number till which you want to print odd number ....'))
num = 1
while num <= var:
if num % 2 != 0:
print(num)
num = num + 1