Sometimes, getting started can be the hardest part of learning to program, even in python. Just running your code can sometimes be a challenge. In this video, I will be showing all of you how I like to run my python scripts using the cmd command line. The cmd command line is useful when you want to run your code separate from your IDE.
To open the cmd, you can press the windows key and then type 'cmd'. Also, you can open up the file location in file explorer, navigate to the python file, and then type 'cmd' in location portion. This will open a cmd command line with the same starting directory as the python file.
There are many different ways to run python scripts, some IDEs will even run the script in the IDE with some simple keyboard commands. This video is a tutorial on how to run a Python script from your command line or cmd. This can be useful in many situations but I use it when I have user inputs within my code.
If you have any questions, leave a comment in the comment section.
Please remember to like the video and subscribe to the channel!
Enjoy!
Watch video How to run a Python Script from your Command Line or CMD online without registration, duration hours minute second in high quality. This video was added by user ComputerGuyChris 19 December 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,676 once and liked it 18 people.