abs() is a build-in function in python which return the absolute value of given number.
number is -23
absolute value is 23
print("Enter any number")
print("Absolute value is ",abs(n))
Enter any number
Absolute value is 23
-In this program, we take a number as a input and we print the absolute value of the number with the help of the abs() function.