INTRODUCTION

 

Introduction To Python




Python is an open source, easy-to-read and powerful programming language.  Python is an interpreted language. Interpreted languages do not need to be compiled to run.  Python code on almost any kind of computer.  This is a reason a programmer can change the code and quickly see the results.  This also means Python is slower than a compiled language like C, because it is not running machine code directly. It is a high-level language, which means a programmer can understand what to do instead of how to do it.  Writing programs in Python takes less time than in some other languages. It supports modules and packages, list, tuples, sets, dictionaries which encourages program modularity and code reuse.

1)Applications of Python

The real time usages of python and where we are apply python programming in different domains.  The Python Package Index (PyPI) hosts thousands of third-party modules for Python.

      Web and Internet Development

      Database Access

      Desktop GUIs

      Scientific & Numeric

      Education

      Network Programming and   Software & Game Development 

Web and Internet Development

  • Python offers many programming frameworks. 
  • Frameworks such as Django and Pyramid used in python. 
  • Micro-frameworks such as Flask and Bottle are used for web development. 
  • Advanced content management systems such as Plone and django CMS are used for writing web programs. 
  • HTML and XML, JSON are simple web development programs.

Scientific and Numeric

    Python is  used in following  scientific and numeric computing

   SciPy is a collection of packages for mathematics, science, and engineering.

   Pandas is a data analysis library

   IPython is a powerful interactive shell 

Business Applications

Python is also used to build ERP and e-commerce systems. 

  • Odoo is an all-in-one management software that offers a range of business applications.  
  • Tryton is a three-tier high-level general purpose application platform.

Open-source

   Python is developed under an OSI-approved open source license, making it freely usable and distributable, even for commercial use.

  Python's license is administered by the Python Software Foundation.

2) Installation of python

      Goto website

       https://www.python.org

      Select the Python's version to download.

      Click on the Install Now

3) Execution of program in different Environments

      Python provides us the two ways to run a program:

a) Using IDLE

      Using Integrated development and Learning Environment (IDLE)

      Using a script file (Multi-line statements)

b) Using a script file 

      click "File" then choose "New",

      press "Ctrl+S" to save the file.

      clicking "Run" or "Run Module".

Example

      ename = “uma"  

      empno = “3"  

      print("My name is: ", ename, )  

      print("My empno is: ", empno)  

 Advantages Using a script file 

   run multiple lines of code.

   Debugging is easy in script mode.

Disadvantages Using a script file 

    save the code every time

      So new environment  is called PyCharm

c) PyCharm 

JetBrains provides cross-platform IDE PyCharm to run the python programs.

Installation of PyCharm is done in following way

      https://www.jetbrains.com/pycharm/download/


d) Jupiter Notebook

 

Comments

Popular posts from this blog

1 PYTHON PROGRAMMING

16 file handling in python

4 Tuple data types