Thursday, 23 April 2020

How to Install Python and PyCharm IDE on Windows

Python developers choose PyCharm IDE for python programming due to its simplicity of usage and scalability. Pycharm is compatible with any python version and is a cross-platform IDE developed by JetBrains.

The following are the steps to download and install the python and PyCharm IDE.

Python Installation on Windows:

  1. Open the browser and go to the official website of python https://www.python.org/downloads/ and download the latest version of Python. 
    python install

  2. Once the download is complete then open the installer file exe and click on Install Now.
    install now

  3. Now python will start installing.

  4. When it finishes, you can see a screen that Setup was Successful. Now you can use the python. 
    python setup



PyCharm Installation:

Follow the following steps to set up the PyCharm IDE.
  1. Open your browser, go to the website https://www.jetbrains.com/pycharm/download/ and download under the community section for free PyCharm IDE.
    pycharm

     
  2. Once your download is complete, navigate to the executable file and run that exe file to install Pycharm. Follow these steps for this. Click "Next" to continue.

     
  3. Next, configure the installation path where you want to install.

  4. On the next screen, you can create a Desktop shortcut if you want to create for easy access. If PyCharm is the primary python IDE then associates the PyCharm with .py.

  5. keep the StartMenu folder JetBrains and click on "install".

  6. Once the installation is finished then click on "Finish". You can select the checkbox "Run PyCharm Community Edition" if you want to run on clicking "Finish".

  7. After completion of installation, the following PyCharm screen will appear.

      Once you openPyCharm and create a project, you are ready to create and run your first Python application.



Tuesday, 21 April 2020

Python Introduction

What is Python?

Python is a simple, general-purpose interpreted, dynamic, high-level and object-oriented programming language. It was created by Guido van Rossum and first released in 1991.

Why to Lean Python? 
Python is an interpreted, interactive and object-oriented programming language. Recently, Python is considered as one of the most versatile and widely used programming language. it is simple, easy to learn and read. its syntax is like English keywords while other languages use punctuations, brackets, etc.

Features of Python:

  1. Easy to learn: Python is use to learn as it has simple syntax like English keywords.
  2. Easy to read: Python code is easy to read and understand due to its simple and clear syntax.
  3. Open Source: Python is open source and has a huge community support. its source code is also available. 
  4. Easy to Integrate: Python code can be easily integrated with other languages like C, C++, Matlab.
  5. A Broad Standard Libray: Python has a large standard library support that makes it much easier to use for complex problems.
  6.  Cross-Platform: Python can run almost all the platforms like Windows, Linux, Mac OS X and Unix etc. 
  7. Object-Oriented: Python supports object-oriented programming where classes and objects make programming easy on real-life problems.
  8. Interpreted Language: Python is an interpreted language where the interpreter compiles code line by line which makes it easier to debug.
  9. GUI Support: Python supports Graphic User Interface which can be used to design GUI applications.
  10. Databases: Python supports to all the commercial databases.

Major Applications of Python:
Python can be used almost for the development of any application. Some of them are the following where python is used.
  1. Web Development: Python is used to develop scalable, dynamic and real-time web applications. Most popular Python Frameworks Django and Flask are used to design and develop web applications.
  2. Desktop Applications:  Python is used to develop desktop applications and GUI. Tkinter is an open-source Tk GUI toolkit. It is the standard Python interface to the Tk GUI toolkit and used for desktop development in python.
  3. Data Science and Machine Learning: Python is at the forefront and widely used in the development of Data Science and Machine Learning applications.
  4. Image Processing: Python is on the top in usage for image processing. Python has many libraries for image processing that its usage more distinctive in image processing applications, like Pillow, OpenCV, Scipy, Matplotlib.