LearnPy Hub
← NumPy problems
Easy

Absolute Values

Read integers and print np.abs(a) as a list.

Input

Integers separated by spaces.

Output

A Python list.

Sample 1

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

Sample 2

Input
0
Output
[0]
solution.py
Output appears here
Absolute Values · Python practice problem · LearnPy Hub