#π Can't open file?
48 messages Β· Page 1 of 1 (latest)
@proud sparrow
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.
here is the error if anyone can help thanks π
is this happening when you try to run the file?
yes
btw hello again unseeyou :p I am bad at python sorry for creating so many tickets πββοΈ
I can send the code if you would like
can you send a screenshot of the project in vscode
yes π
like the project structure with folders and stuff
what about the run command
wdym?
no i mean like the terminal where it shows the output of your code
ok change all the subprocess commands to subprocess.run(["python", "IO stuff/FILENAME.py"])
oh ok
alternatively you could put the code in those files into a function, import the function and then run it without subprocess
tysm π
np
but it much more messy
true
thanks a lot you have been helping me a lot recently π
I would just have all the programs in the same file as functions since I'm assuming they are pretty short
yeah they are mostly quite effecient
my dad is helping me learn he said to practice naming files and stuff
and to have good organization as it will help a lot
that's a good idea
thanks btw are the file names good?
yup they are descriptive and they all use snake case so it's consistent
thank you very much
he gave me a list of things to add now I got to do a digit breaker xD
anyways have a good day/night unseeyou
u too
!close
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.