Python help

Status
This thread has been locked.

Cryptokid

money man
Banned
Feedback score
11
Posts
169
Reactions
59
Resources
0
hello

i was wondering if someone could help me with python.

I am wondering how to run a .py file succesfully.
 
Banned forever. Reason: Rules violations
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Doge

Long Dogs
Supreme
Feedback score
126
Posts
5,271
Reactions
8,930
Resources
0
What happens when you click to open the file?

What is it meant to do?

Make sure you have Python installed

Make sure you have the required dependencies installed if any

You can always read the code and figure it out that way as well, or show it to someone else.
 

Franix

Web Developer
Supreme
Feedback score
51
Posts
1,267
Reactions
620
Resources
0
open cmd
change the directory to the folder where your .py file is located (Example: cd C:\Users\User\Desktop\Python Project\)
Run the file using py yourfile.py

Edit:
Using PyCharm lets you run the code as you're writing it and doesn't open a window that closes itself if it encounters errors, really recommend using it
 

croissant222

Feedback score
0
Posts
439
Reactions
151
Resources
0
open cmd
change the directory to the folder where your .py file is located (Example: cd C:\Users\User\Desktop\Python Project\)
Run the file using py yourfile.py

Edit:
Using PyCharm lets you run the code as you're writing it and doesn't open a window that closes itself if it encounters errors, really recommend using it
You can just run it from a terminal and it wont exit either, on windows you have to open it seperately and then run the py file though
 

Cryptokid

money man
Banned
Feedback score
11
Posts
169
Reactions
59
Resources
0
Banned forever. Reason: Rules violations

Dinoo_

Premium
Feedback score
15
Posts
293
Reactions
47
Resources
0

Cryptokid

money man
Banned
Feedback score
11
Posts
169
Reactions
59
Resources
0
Banned forever. Reason: Rules violations

Dinoo_

Premium
Feedback score
15
Posts
293
Reactions
47
Resources
0
Status
This thread has been locked.
Top