0
Wtite a statement in python to find absolute value of -100
phyton
5 ответов
+ 3
Bebida Roja
In python that would be
def abs(x):
return -x if x < 0 else x
+ 1
print(abs(-100))
+ 1
You could have asked this to Google.
+ 1
thanks
0
def Abs(x):
return (x<0 ? -x : x)