>>> variable vs variable without >>> | Sololearn: Learn to code for FREE!

+2

>>> variable vs variable without >>>

in the 'try it yourself" why is the >>> missing? I tried to enter a variable with >>> love=7, that did not work. When I eliminated the >>>, it worked. Is this a python version 3 thing?

3/1/2018 11:25:04 PM

Adaobi

3 Answers

New Answer

+14

the >>> is only writen in the console or idle , you don't need to enter it)

0

Thank you Nick, does that mean I will not have to enter it in the real python program?

0

In python shell you can't save a real python program,use File ,create new file ,save it as file_name.py and run it.