I haven't been able to figure out what the >>>
does, even though I often see it often in source code.
'>>>' is the prompt of the interactive Python interpreter, meaning that the interpreter is ready to get Python statements typed in.
That >>> is called a prompt, which means it's something the computer displays to tell you it's ready for your instructions. You can type things into that window, and the computer will obey them when it understands your commands.
One arrow typically represents direction moving forward. Two arrows crossed represent friendship and or peace. Perhaps the three crossed arrow symbol represents moving forward with friendship or a long-lasting friendship.
A three arrow tattoo can be a symbol of friendship. It is a great design to get with friends or loved ones. The ink is also thought to represent a strong bond.
You won't see it in source code, it's probably documentation. It indicates an interactive session, and things typed into the 'interpreter' are marked with this. Output is shown without the arrows.
In fact, the python documentation often has a button >>>at the top right of example code to be able to hide the arrows (and output) so that you can copy and paste the code.
Shown:
Hidden:
'>>>' is the prompt of the interactive Python interpreter, meaning that the interpreter is ready to get Python statements typed in. It's occuring quite often in examples within the documentation of a Python program, in order to show which commands can be used and what will be the result of giving these commands to the interactive interpreter. For example, in a documentation of the print
statement, one could give this example:
>>> print "Hello world." Hello world.
This would be an actual snippet of a session with the interactive Python interpreter.
An interesting feature in IPython is that it ignores leading >>>
, meaning that you can copy and paste code from such documentation without needing to remove the leading >>>
:
In [1]: >>> print "Hello world." Hello world.
(The prompt in IPython is In [n]:
, where n
is counting the interactive commands issued.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With