Simple Operations | Sololearn: Learn to code for FREE!


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


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.


Do (4+8/2)


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