>>> | Sololearn: Learn to code for FREE!

0

>>>

Hi I am new to Python. I dont understand what is the >>> . When I enter in >>> (4+8) / 2 into Python, it does not like the >>>. It gives a syntax error. What am I doing wrong?

>>>

6/6/2020 1:56:15 PM

Jennie Bromley

3 Answers

New Answer

+16

Please use the search bar brefore posting the question. https://www.sololearn.com/post/10362/?ref=app https://www.sololearn.com/discuss/75377/?ref=app https://www.sololearn.com/discuss/15026/?ref=app https://www.sololearn.com/discuss/1158279/?ref=app https://www.sololearn.com/discuss/1359276/?ref=app https://www.sololearn.com/discuss/568241/?ref=app

+2

If you are writing in script mode then it is not required. And if you are writing in interactive mode then it will simply indicate the new line

0

When you click "try yourself" don't enter ">>>" Just type print(4+8) / 2