0 votes
1 view
in Python by (43.2k points)
Can anyone tell me how to execute the Python program?

1 Answer

0 votes
by (92.8k points)

For executing a Python program, there are two ways. The first way is running your Python file in CMD (command prompt). For that, first, you need to open your command prompt and write:

C:\Python27\Python.exe (paste your path of the Python file that you want to execute)

Then, you need to hit Enter. This way, your Python file will get executed.

The second way is to use the Jupyter Notebook to execute your python commands. Here, you need to just write the code and hit Shift+Enter, and your command will be executed.

If you are looking for an online course to learn Python, I recommend this Python Online Course by Intellipaat.

Related questions

0 votes
1 answer
asked Sep 16, 2019 in Python by Sammy (47.8k points)
0 votes
0 answers
asked Jul 17 in Python by ashely (43.2k points)
0 votes
1 answer
asked Jul 13 in Python by ashely (43.2k points)
0 votes
1 answer
asked Jul 11 in Python by ashely (43.2k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...