#π i need helo setting uo python
86 messages Β· Page 1 of 1 (latest)
@modern bane
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.
Sm1 help
I can help
You need to run python script via terminal or any other command line interface. Or through your IDE (which essentially uses the very same command)
How did you write the script
Can u help me on call
While i screenshare
@remote cape
Sorry, I don't do that
What does this file do?
Token joiner
You probably have an error, or the program is just finishing.
- Open a terminal
cdto the directory the code is in- Run
pythonwith the code's file name to run the code
Weym cd
Have you ever used a terminal before?
No
What OS are you using?
Im using a windows school computer
Windows 10 or 11?
11
Type cd ("Change Directory"), then the path to the directory containing the code. For example
cd C:/Users/YourName/Desktop
If the code was on your desktop, and your name was YourName.
do i open to terminal?
Yes, cd is a command that's run from inside the terminal.
it wont open
?
when i click it, it does nothing
prolly cus im on a school comp
but i have no other computer
Try cmd instead of wt.
The other way is to wrap all your code in a try that prints the error, and calls input to prevent closure:
try:
# All your code
except Exception as e:
print(e)
input()
Then double click the program.
i hav my this
what do i do with it
Oh, you managed to open the terminal?
yuh
Now run py yourScript.py.
can i just show u on screen share
You can post screenshots here, ya.
it still keeps closing
What happens exactly when you run the py command I mentioned? Running a python program won't alone close the terminal it was run from.
I'm not sure what you mean.
If you're trying to learn to code though, you'll need a computer that isn't set up to block running code.
Using the terminal is a fairly critical skill in the long-term, so you need a machine that allows you to practice using the terminal.
A basic chromebook would even work.
Technically, if you have a screen, a Raspberry Pi is even sufficient. I did an entire class on a Pi.
imma geta chromebook
I did a Reverse Engineering class at school on a Pi.
(To the guy that has now deleted the comment).
no way lmao
Ya, it was a fun course.
I still have the Pi. I've been meaning to do a project with it.
^^
You can run Python on a potato. Almost literally anything will work unless you have specific needs, which you won't when starting out.
The specs of the computer are almost irrelevant nowadays.
And by "specific requirements", I meant like if you're doing image/video processing or 3D game design. Those will require beefier specs.
oh alr
99% of the projects that you'll be doing in the beginning (and even later) have very little in terms of memory/processing requirements. Modern computers are so powerful and have so much memory that they cover most usecases.
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.