P
P
pynew_user2021-10-14 19:09:33
Python
pynew_user, 2021-10-14 19:09:33

VS code Can I write a function in terminal and see the values?

616855af1180a965469441.png
I rewrote the code from the video tutorial https://www.youtube.com/watch?v=DvsCUI5FNnI&ab_cha... timecode 1:05:53
My function is not recognized in the terminal, although everything works in the video.
Please help with solving the problem, I'm just starting to understand python.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
soremix, 2021-10-14
@pynew_user

The video shows a standard python interpreter, you can use it. Either by simply writing pythonin cmd, or by opening the standard IDLE
. I don’t know if there are special functions in VS Code, but in general you can do this: paste import pdb; pdb.set_trace()and run the code at the end of the file, so you can already work from a convenient system

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question