Does this >>> do or mean anything? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does this >>> do or mean anything?

17th Feb 2017, 4:22 PM
Haydn Hammer-Huber
Haydn Hammer-Huber - avatar
3 Answers
+ 3
no, you don't. if you are on windows, open cmd. there you'll find something like C:\> at the beginning of every line. on linux you'll find something similar to user@host > it just tells you where you are: at the beginning of an input. when you end your input, it'll be processed and a new input starts.
17th Feb 2017, 4:40 PM
Mario L.
Mario L. - avatar
+ 3
As previously said ( but I link the two answer :P ), '>>>' is the prompt sign of Python Idle command line interpreter, as 'C:\>' can be the prompt of window command line, or 'user@host>' on unix-like systems. A 'prompt' means that the computer is waiting for an user entry... in context of command line interpreter, you will get it after each command finish, waiting for the next... When encountering in examples of code, it means usually that you'll have ( or you can ) reproduce it on command line, but without typing the prompt, as well as in a file to be later executing ( and more easily corrected: if you make a typo mistake on command line, it's possible but not convenient to recall and edit some lines ).
17th Feb 2017, 7:31 PM
visph
visph - avatar
0
so if it's a input do I have to put it at the beginning of each line of code?
17th Feb 2017, 4:35 PM
Haydn Hammer-Huber
Haydn Hammer-Huber - avatar