Simple Operations | Sololearn: Learn to code for FREE!

-1

Simple Operations

Very dumb question, but I can't get simple math operations to output anything in code playground. Simply entering (4 + 8) / 2 returns >No output. Edit: nvm you need to include it in a print() command

12/10/2019 7:26:23 PM

del46 _

5 Answers

New Answer

+1

You must insert your math operations inside print() function, or assign it to a variable and print the resulting variable. That is necessary because code playground is not a REPL, it's the same as writing a Python script.

0

Do (4+8/2)

0

Write all the print statements or math operations to print inside function print()

0

https://code.sololearn.com/W7a5JM0g6C4W/?ref=app

0

Print((8+4)/2)