LearnPy Hub
← Matplotlib Charts problems
Easy

Line Chart Data

Read y values, plot them as a line with x = 1, 2, 3, ..., and print the line's x data and y data as lists using get_xdata() and get_ydata().

Input

One line of integers.

Output

Two lists.

Sample 1

Input
3 5 2
Output
[1, 2, 3]
[3, 5, 2]

Sample 2

Input
7
Output
[1]
[7]
solution.py
Output appears here
Line Chart Data · Python practice problem · LearnPy Hub