LearnPy Hub
← Iterators & Generators problems
Easy

Odd Number Generator

Write a generator odds(n) that yields the odd numbers from 1 to n. Read n and print them on one line.

Input

One integer n ≥ 1.

Output

One line.

Sample 1

Input
10
Output
1 3 5 7 9

Sample 2

Input
1
Output
1
solution.py
Output appears here
Odd Number Generator · Python practice problem · LearnPy Hub