Write a Python program to find out absolute value of an input number.
IDE: Visual Studio Code ( VSC ). Present: go2collage.
Download hole Program / Project code, by clicking following link:
Programming Code:
# Basic Python Program
# Find Absolute value
num = float(input("Enter a number: "))
print("given Absolute value is: ", abs(num))
# by using abs() method we get absolute value of a number
Output:
0 Comments