Driving Innovation, Scaling Solutions
Use the abs() built-in function in Python.
number = -1 abs(number) # Output # 1
Have any questions or comments? Write them below!
Your email address will not be published. Required fields are marked *
Comment *
Save my name, email, and website in this browser for the next time I comment.