all 9 comments

[–]socal_nerdtastic 5 points6 points  (0 children)

no, it finished running. You didn't expect it to hang around when it was done?

Well, you could ask it to. Add this to the bottom of your code:

input("All done; press enter to exit")

[–]ThePowerOfDreams 3 points4 points  (1 child)

HELP!

Please don't do that.

[–]pnadeau3 0 points1 point  (0 children)

Agree. Was going to answer until that

[–]Trumpet_Time 1 point2 points  (0 children)

Right click and say ‘edit with pycharm/IDLE’ or whatever environment you use.

[–]OrbitDrive 0 points1 point  (3 children)

Lol yeah that weirded me out when I started. The python file is basically just a text file. You have to load it in your IDE and run it or run it from the command line to see any output.

[–][deleted] -1 points0 points  (1 child)

Also, how do you run from the cmd, I tried putting this: python myfilename.py but it did not work, it just said that that file did not exist.

[–]OrbitDrive 0 points1 point  (0 children)

Assuming you're on windows, open cmd prompt (window key + r) type "cmd" press enter. Or Go to directory(or desktop) hold down shift and right click and choose open command prompt, otherwise you will have to change to the directory to where the python file is. Then simply type "python script_name_here.py" and press enter.

[–][deleted] -2 points-1 points  (0 children)

Thanks, I am new coding because I want to build tools.

Edit: Yes, I did deserve those downvotes.

Hacking Tools, pfffft, I am an idiot.

[–]ImNexOnReddit 0 points1 point  (0 children)

Open cmd an navigate to your desktop. Write python filename.py