+ 1

In python , What are these '>>>' symbols used for ?

15th Dec 2017, 3:40 PM
Shreyas Salunkhe
Shreyas Salunkhe - avatar
2 Respostas
+ 4
The 3 chevrons '>>>' are the input prompt beginning a new line in the Python console, or interactive shell. They are not part of the code and are never written. The lessons use them to show what code run in the shell looks like and frequently causes some confusion. Use the "try it yourself" feature in the lessons and you will see there are no >>> prompts used. If you are running Python on a PC using IDLE, you can try the console or the code editor. https://docs.python.org/3.6/tutorial/interpreter.html?highlight=interpreter
15th Dec 2017, 4:43 PM
David Ashton
David Ashton - avatar
+ 2
thanks @david_Ashton
15th Dec 2017, 4:45 PM
Shreyas Salunkhe
Shreyas Salunkhe - avatar