contact@eeehub.in +919470012104

Running Python

We can run the python programming by three ways. There will be certain change in the commands for different machines.


For Windows:


  1. Interactive Interpreter: Open the command prompt on you windows machine(Note: Environment Variable should be set otherwise it won't work).
    C:\Users\Ajay>python
    Python 3.8.0 (tags/v3.8.0:fa545fd, Oct 14 2019, 19:21:23) [MSC v.1915 32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> print("Hello EEEHUB!")
  2. Script from the Command-line: For this you need to write program in file. Save that file with the extension (.py). Then open the command prompt to that file location. In my case first.py file saved at location C:/Users/Ajay.
    C:\Users\Ajay>python first.py
    Hello EEEEHUB!
  3. Integrated Development Environment(IDE): Once you have download the python in your system. Search python in result you will get Python IDLE. That is GUI (Graphical User Interface) from their you can also run the python code.

For Linux:


  1. Interactive Interpreter: Open the command prompt on you windows machine(Note: Environment Variable should be set otherwise it won't work).
    $python
    Python 3.8.0 (tags/v3.8.0:fa545fd, Oct 14 2019, 19:21:23) [MSC v.1915 32 bit (Intel)] on Linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> print("Hello EEEHUB!")
  2. Script from the Command-line: For this you need to write program in file. Save that file with the extension (.py). Then open the command prompt to that file location. In my case first.py file saved at location C:/Users/Ajay.
    $python first.py
    Hello EEEEHUB!
  3. Integrated Development Environment(IDE): Once you have download the python in your system. Search python in result you will get Python IDLE. That is GUI (Graphical User Interface) from their you can also run the python code.