Python
Python:
* Python is one of the most powerful programming language in the world,
* It was created by Guido Van Rossum, who was an employee of Microsoft
* It was launched in the year 1991
* Python helps us to reduce lines of code
*Python has a large number of developers and libraries around the world
* It is an Object oriented programming language
* It is used in web development, game development, app development, Data science, Artificial intelligence, Machine Learning etc.
Why I want to learn Python?
1) Easy to learn
2) Python inbuilt package will helps us to reduce our code
3) Syntax is very easy
4) It is like English phrases to learn
5) Python can be used in large number of areas like Artificial Intelligence, Machine Learning etc.
Object oriented programming language:
1) Object oriented programming language is a programming language which is based on the concepts of objects. It overcomes the disadvantage of procedural programming language.( Functions) only be written.
2) In OOPS, the most important entity object is created.
Principles of OOPS are:
1) Abstraction:
It is defined as the process of showing only essential and hiding the implementation of the program. It is used to maintain the complexity of the program.
2) Encapsulation:
Binding of code and data into a single entity
3) Inheritance:
It is a mechanism in which the derived class derive the properties of parent class. In other words, derived class can contain additional properties.
4) Polymorphism:
Executed in more than a way.
Defines more than a form.
5) Classes and Objects.
Adventages of OOPS:
* Flexibility through Polymorphism
* Reuse of code
Applications:
* CAD/CAM systems
* Object oriented Database
We are learning several programming language, but python is easy to learn. Whenever we learn a new programming language, we will write Hello World program.
Ex:
>>> print("Hello World")
Hello World
Python is a high level programming language which is easy to understand for humans. Python use interpretation.
1) Interpreter -> Interpreter will take the input as line by line which checks that particular line and converts into human readable code. Complilation time is slow compared to that of Compilers.
Execution part of a python program
We want to save a python program with .py file extension. The current version of Python is 3.10.
Ex: hello.py
Comments
Post a Comment