J
J
john222552020-09-10 17:57:11
Python
john22255, 2020-09-10 17:57:11

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

3 answer(s)
L
Lesha, 2020-09-10
@john22255

This means that the code was executed directly in the python interpreter.
5f5a40099dfe3443852239.jpeg
(Without writing it to a file and running it)
You need to copy, of course, without these characters.

D
Dmitry, 2020-09-10
@LazyTalent

5f5a632d0b154651479533.gif

A
Alexey Vorobyov, 2020-09-10
@official_a0

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 question

Ask a Question

731 491 924 answers to any question