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))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: