#๐ Complete beginner who got stuck on running code on VS code
55 messages ยท Page 1 of 1 (latest)
@worn minnow
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
you havent saved your file
that too
first save it and run the same command again
python is for unix/macos, py is for windows
weird, i havent had py work
No Windows also works with Python
I've never used py in my life ๐
is there another version of windows?
theres the one on the site and the microsoft store version
i meant the microsfot store version*
and you should not use that
always use the one from python.org website with your respective system
Nope I've downloaded the original version from python.org I'll check if py works
Yep Python and Py both works
@worn minnow you've the python extension of VS code?
yeah but its recommended to use the py for windows and python for the other, if you try creating a venv using the wrong command it can break
Yeah possible I don't use terminal so idk much about it I'll usually open powershell and do stuff from there and use VSC to just run files
yes already. i watch the tutorial of paul mcwhorter on utube and i follow exactly what he did but i dont know whats wrong with mine
did you save your file
press ctrl + s
yea alr
did you run the file
yes!!
what happens after
here.
do you have python installed in your system
yes, and i have adฤe it in Path
run py -0 in your terminal and show the output
im pretty sure the extension you're using is called code runner
uninstall that extension and download the python extension from microsoft
thank u for ur help
is this the right one
yes
you can press the play button on the top right
it might ask for the path of your installed python.exe
navigate to wherever youve installed python in your system and select the interpretor
well thats the one ive been trying, but didnt work.
what doesnt exactly work
i try to run the code again but it doesnt appear in the terminal
i have done all the things u said but it diddnt work, the "+'Please enter your first nummer' appears in the Output session but nothing appears in the Terminal session. here is the result after i press run code
it still works tho, on some installed environments
dont really get why ppl use python over py lol
heres why i do it
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.