def absolute_value(num):
if num >= 0:
return num
else:
return -num
print("Absolute Value of 89 :", absolute_value(89))
print("Absolute Value of -189 :", absolute_value(-189))
To embed this project on your website, copy the following code and paste it into your website's HTML: