cs/Practical File/questions/question_13.py
Neil Revin 780baf678e
chore: move question & output files
Move python question files to 'questions' directory
Move output files to 'outputs' directory
Copy output files to 'questions' for ease of viewing

Signed-off-by: Neil <neil@willofsteel.me>
2025-06-24 02:34:07 +05:30

11 lines
258 B
Python

# Question: Write a Python program to find the absolute value of a number.
def main(num: float) -> None:
abs_value = abs(num)
print(f"The absolute value of {num} is {abs_value}")
if __name__ == '__main__':
main(-5.5)
main(3.14)
main(0)