- 1
Write statement in Python to find absolute value of 100.
this is program based question
9 Réponses
+ 2
hinanawi to be precise, the question just asked to "find" the absolute value, not output it to the screen.
+ 1
abs(100)
+ 1
print(abs(100)) to be more precise
+ 1
hinanawi agree.
0
if it -100 then?
0
Nikky choudhry well your question was "absolute value of 100"
the absolute value of -100 would just be:
print(abs(-100))
0
ok thx
0
S. C. correct, but that doesn't really serve a purpose given nothing actually happens within the program that the user is able to see haha
- 1
is it correct