livepython.net

82. Python Program to Print Numbers from 1 to N

Easyrange()

Overview

Use range() with a start and a stop that comes from input.

Problem Statement

Read a whole number n (1 or more) and print the numbers from 1 to n, each on its own line. For example, for 5:

1
2
3
4
5

Use input() with no prompt text: the tests type the input for you, and a prompt would end up in your output.

Input

One value per line, in this order. Example:

5

Output

The output for that example:

1
2
3
4
5

The tests try 3 different inputs.

Learn this firstChapter 10 · Python range() Function in a for Loop
solution.py
# write your code here

EXPECTED OUTPUT

11
22
33
44
55

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.