Answer the question
In order to leave comments, you need to log in
The >>> sign in Python code. What is it?
Good day!
Another idiotic question.
Very often, looking for various examples of Python code on the Internet, I stumble upon a mysterious icon: >>>.
For example:
>>> import pandas as pd
>>> my_series = pd.Series([5, 6, 7, 8, 9, 10])
>>>
my_series error.
I ask for tips from dear members of the forum, what are these arrows, what do they mean and why are they needed?
Thank you.
Answer the question
In order to leave comments, you need to log in
This means that the code was executed directly in the python interpreter.
(Without writing it to a file and running it)
You need to copy, of course, without these characters.
Man, when you go to the console (even without studying it I know), you see these characters in the input field there, it means your input, like write that code without these icons and there will be no error))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question