find absolut vale in python
abs(a)
absolute value python
#find the absolute or modulous of the number
a=int(input('enter number'))
if a>0:
print('The absolute value of',a,'is',a)
else:
print('The absolute value of',a,'is',-a)
#output:
#case I
enter number4
The absolute value of 4 is 4
#case II
enter number-4
The absolute value of -4 is 4
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us