F
F
Fedor2019-05-14 17:42:03
PyCharm
Fedor, 2019-05-14 17:42:03

Why is the command executed in the regular Python Shell, but not in Pycharm?

5cdad3906d1b9903599447.png
I'm just starting to learn, don't laugh.)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Bezh, 2019-05-14
@obezh

print(user[5])
Open the interpreter in picharm and the commands will work there as well. By running the script, you are running the script, with all the consequences, the finished code. It shouldn't show you anything, so it doesn't.
And in the interactive console - read about it, the same lutz starts with its description.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question