Simple Operations | Sololearn: Learn to code for FREE!

0

Simple Operations

Ok this is CONFUSING... in Simple Operations, I copied the same code in the example (>>> 2 * (3 + 4)) into the code playground and this was what I got File "..\Playground\", line 1 >>> 2 * (3 + 4) ^ SyntaxError: invalid syntax Please help

3/7/2018 5:35:56 PM

o. O

11 Answers

New Answer

+3

those >>> are just what the interpreter shows. They just drew it for realism Like terminals show >_ for example if the answer was supposed to be 7, that is

+2

worked for me... If you want to see output put it inside a print()

+2

Aw I know right. Maybe because if you have an interpreter it prints automatically. they assumed you had one Code Playground on here you need print lol Happy to help!

+1

+1

Thanks

0

Still confusing

0

I did that and it's same

0

I took it out.. Still the same

0

Oh ok.. That worked.. Why didn't they just put that in the description then.. Sigh

0

Write 2 * (3 + 4) without the arrows

0