Installing Python and exploring different optional software's for a comfortable performance. Atom/ Pycharm.

05 min read

A bunch of awesome stuff can be done using Python. To do those, the very first thing that needs to be done is to install Python on your Windows/Mac.

Here is a quick tour to get it installed:

  • To install Python IDE, go to www.python.org >> get into "Downloads" section 
  • Depending on the Operating system you use (Either Linux/ Ubuntu/ Unix/ Windows / Mac download the Python file into your computer. There are major versions in Python (Python2.7 or Python 3.series) Depending on your comfort download the necessary package.  
  • If you are a beginner, I would recommend you to download the latest version in Python i.e Python 3.(something)

The working of Python2 and Python3 are similar but there are subtle changes in syntax and certain assignments.  

Now, install the downloaded file with normal installation steps. Once, installed >> check for folder Python 3.(something) in your installed file location in your computer.

Open that folder to find "Python IDLE" file in it. Right click on this file and create a shortcut on the desktop for easier access in the future. 

Simple command lines such as "print("hello world")" can be executed here, whereas lengthier programs would require a text editor to first write the entire code there and run the code in Python. For this purpose, MS word cannot be used because when you save a code in MS word, a lot of other information which is not visible also gets saved along with it hindering the execution process. 

Therefore, you need a simple text editing software such as Notepad/ Notepad++ or Atom text editor. 

A simple Notepad file can be used to write your code. Once you finish writing the code, save the file with a ".py" extension such as "anyname.py". Now open your command prompt>> Change your directory to the place where python is installed>> python anyname.py (type python >>give a space>> write your filename >> press enter). The code written inside file editor is executed by Python and results are displayed in command prompt itself. 

Note: Use of notepad as text editor would not symbolically represent the errors while typing the code with colours etc. Also, the plain look might not look appealing to the beginners. Hence, I recommend you to install Atom text editor which would be more helpful to start off. ( Both notepad and Atom have equal capabilities while executing the code).

Now, many feel it is a cumbersome task to open a text editor and command prompt to run Python codes. To simplify that, we could use an equally good software called Pycharm where you could build the code and execute in one place. To download Pycharm go to https://www.jetbrains.com/pycharm/download/#section=windows and download the community version of Pycharm. Remember to install the latest version for better performance and more options. Pycharm makes it simple if any additional python packages need's to be installed for specific programs which is explained later.

 

 

POST A NEW COMMENT
     
  • Input (stdin)

    Output (stdout)


    Input (stdin)

    Your Output (stdout)

    Expected Output

    Compiler Message

    Input (stdin)

    2    3

    Your Output (stdout)

    5

    Expected Output

    5

    Compiler Message

    5

    Error