0

PYTHON Why is this the output of this code?

input: print(abs(max(-3,-4))+1) output: 4

7th May 2018, 5:44 PM
stephanie
stephanie - avatar
2 Answers
+ 4
max of -3 and -4 is -3 absolute value of -3 is 3 3 + 1 is 4 print 4
7th May 2018, 5:51 PM
Samuel Vincent
Samuel Vincent - avatar
0
thank you!
7th May 2018, 5:53 PM
stephanie
stephanie - avatar