cs/practical-file/answers/question_13.py

4 lines
167 B
Python

# Question: Write a Python program to find the absolute value of a number.
num = float(input("Enter a number: "))
print(f"The absolute value of {num} is: {abs(num)}")