Answers for "abs function in python 3"

13

abs function in python

negative_number = -7
positive_number = abs(negative_number)
Posted by: Guest on November-21-2021
3

abs in python 3

print ("abs(-45) : ", abs(-45))
print ("abs(100.12) : ", abs(100.12))
output:
  45
  100.12
Posted by: Guest on July-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language