Lowest price ever! Learn Generative AI for 48% less!
Get my discount0
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
11 Answers
+ 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
dont type >>>
+ 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
Ok