print(5+5/2)
✓ ANSWER ACCEPTED
What does this script print w/o you looking in the output?
1 answer
✓ Accepted answer
It prints 7.5 I don't know what you mean by w/o but mathematically that is correct It divides 5/2 because with PEMDAS division and multiplication is done before addition and subtraction in multi-step problems. The answer to 5/2 is 2.5 and then this adds 5 so the answer is 7.5
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
I knew that but I wanted to see what people think. I know now because of ScriptGuider's youtube video. Thanks anyways!
yw :)