abs 28 29 absolute

Solutions on MaxInterview for abs 28 29 absolute by the best coders in the world

showing results for - "abs 28 29 absolute"
Effie
19 Jun 2016
1# random integer
2integer = -20
3print('Absolute value of -20 is:', abs(integer))
4
5#random floating number
6floating = -30.33
7print('Absolute value of -30.33 is:', abs(floating))
Vincenzo
05 Jan 2019
1# random integer
2integer = -20
3print('Absolute value of -20 is:', abs(integer))
4
5#random floating number
6floating = -30.33
7print('Absolute value of -30.33 is:', abs(floating))
8
9Results
10Absolute value of -20 is: 20
11Absolute value of -30.33 is: 30.33
12