LearnPy Hub
← NumPy problems
Easy

Round, Floor and Ceil

Read decimals. Print np.round(a), np.floor(a) and np.ceil(a) as lists of integers (convert with .astype(int)).

Input

One line of numbers.

Output

Three lists.

Sample 1

Input
1.2 2.5 3.7
Output
[1, 2, 4]
[1, 2, 3]
[2, 3, 4]

Sample 2

Input
-1.5
Output
[-2]
[-2]
[-1]
solution.py
Output appears here
Round, Floor and Ceil · Python practice problem · LearnPy Hub