LearnPy Hub
← Iterators & Generators problems
Easy

Count Up Generator

Write a generator count_up(n) yielding 1 to n. Print the values on one line.

Input

One integer n ≥ 1.

Output

One line.

Sample 1

Input
5
Output
1 2 3 4 5

Sample 2

Input
1
Output
1
solution.py
Output appears here
Count Up Generator · Python practice problem · LearnPy Hub