To run it on command line, type the following − python hello.py Run On IDE (P圜harm) Let us suppose, we have a python script saved with the name ‘hello.py’. In the cmd, type keyword ‘python’ followed by the name of the file with which you saved the python script. ![]() After saving the python script, we can run it from the Command Line. The python script file is saved with ‘.py’ extension. To run the program, go to Run > Run Module or simply click F5. To run a python program on IDLE, follow the given steps − Running a python program is quite an easy task. ![]() On running the program, we can check whether the code is written is correct and produces the desired output. After writing the code, we need to run the code to execute and obtain the output.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |