Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Python Fundamentals of Python & Environment Setup.

Similar presentations


Presentation on theme: "Introduction to Python Fundamentals of Python & Environment Setup."— Presentation transcript:

1 Introduction to Python Fundamentals of Python & Environment Setup

2 Today’s Learning Topics What is Python History of Python Features of Python Python Versions and it’s comparison Installation of Python

3 What is Python? Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together. Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed.

4 History of Python Invented in the Netherlands, early 90s by Guido van Rossum. Named after Monty Python. Open sourced from the beginning, managed by Python Software Foundation. Used by Google from the beginning. “Python is an experiment in how much freedom programmers need. Too much freedom and nobody can read another's code; too little and expressiveness is endangered.” - Guido van Rossum

5 Features Of Python Easy to code: Python is a high-level programming language. Python is very easy to learn the language as compared to other languages like C, C#, JavaScript, Java, etc. It is very easy to code in python language and anybody can learn python basics in a few hours or days. It is also a developer-friendly language. Free and Open Source: Python language is freely available at the official website. Since it is open- source, this means that source code is also available to the public. So you can download it as, use it as well as share it. Dynamically Typed Language: Python is a dynamically-typed language. That means the type (for example- int, double, long, etc.) for a variable is decided at run time not in advance because of this feature we don’t need to specify the type of variable.

6 Object-Oriented Language: One of the key features of python is Object-Oriented programming. Python supports object-oriented language and concepts of classes, objects encapsulation, etc. GUI Programming Support: Graphical User interfaces can be made using a module such as PyQt5, PyQt4, wxPython, or Tk in python. PyQt5 is the most popular option for creating graphical apps with Python. High-Level Language: Python is a high-level language. When we write programs in python, we do not need to remember the system architecture, nor do we need to manage the memory. Extensible feature: Python is a Extensible language. We can write us some Python code into C or C++ language and also we can compile that code in C/C++ language.

7 Python is Portable language: Python language is also a portable language. For example, if we have python code for windows and if we want to run this code on other platforms such as Linux, Unix, and Mac then we do not need to change it, we can run this code on any platform. Interpreted Language: Python is an Interpreted Language because Python code is executed line by line at a time. like other languages C, C++, Java, etc. there is no need to compile python code this makes it easier to debug our code. The source code of python is converted into an immediate form called byte code.

8 Comparison of Python Versions Basis of comparisonPython 3Python 2 Release Date 20082000 Function print print ("hello")print "hello" Division of Integers Whenever two integers are divided, you get a float value When two integers are divided, you always provide integer value. Unicode In Python 3, default storing of strings is Unicode. To store Unicode string value, you require to define them with "u". Iteration The new Range() function introduced to perform iterations. In Python 2, the xrange() is used for iterations. Exceptions It should be enclosed in parenthesis.It should be enclosed in notations. Leak of variables The value of variables never changes. The value of the global variable will change while using it inside for-loop. Backward compatibility Not difficult to port python 2 to python 3 but it is never reliable. Python version 3 is not backwardly compatible with Python 2.

9 Installation Steps Of Python 1.Browse to below mentioned link- https://www.python.org/downloads/windows/ https://www.python.org/downloads/windows/ 2. Then click on - Download Windows installer (64-bit). It will start downloading exe of python 3.9.5.Windows installer (64-bit) 3. Double click on exe, it will open installation window of python. 4. Check the option “Add python 3.9 to the path” and then click on “Install now option”. It will start installation process. 5. After completion of installation click on close button. 6. Press “Windows + R” key and write cmd and press enter. It will open cmd terminal. Then write python and press enter. cmd terminal will change to python terminal and you can also see the version of python.


Download ppt "Introduction to Python Fundamentals of Python & Environment Setup."

Similar presentations


Ads by Google