LearnPy Hub
← Matplotlib Charts problems
Easy

Set the y Range

Read lo and hi, set them as the y-axis limits with ax.set_ylim, then read them back with ax.get_ylim() and print both on one line as floats.

Input

Two numbers.

Output

One line.

Sample 1

Input
0
100
Output
0.0 100.0

Sample 2

Input
-5
5
Output
-5.0 5.0
solution.py
Output appears here
Set the y Range · Python practice problem · LearnPy Hub