>>> variable vs variable without >>> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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?

1st Mar 2018, 11:25 PM
Adaobi
3 Answers
+ 14
the >>> is only writen in the console or idle , you don't need to enter it)
1st Mar 2018, 11:33 PM
__Nick
__Nick - avatar
0
Thank you Nick, does that mean I will not have to enter it in the real python program?
2nd Mar 2018, 9:30 PM
Adaobi
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.
4th Mar 2018, 8:08 PM
HBhZ_C
HBhZ_C - avatar