Python is based on OOPS (Object Oriented Programming) Concepts. It is introduced by the Guido Rossum in year 1989. It is Designed for fast prototyping of mixed application. Python is extensible to C++ or C language. Presently python Programming is used by many companies like, Google, NASA, YouTube etc. Basically, Python programming used in Artificial Intelligence (AI), Neural Networks and other advanced in the field of computer science. Python supports various programming pattern, including procedural programming, object- oriented and functional programming styles.
Python is object-oriented Programming language from starting. It allows us to create and developed programming using oops Approach. The main concepts of OOPS are listed below: -
1. Object: - object is the instance of class. When class is instantiated then memory is allocated but when class is defined no memory is allocated.
2.Class: - class is a collection of objects.
3.Data Hiding: - It allows to prevent the function of program to access directly from internal of class type. There are three types of Data hiding in python i.e. Public, Private and protected.
4.Method:- In python Method is not unique to class of instance. Any class have method.
5.Encapsulation: - In encapsulation, data and code are wrapped together within single unit. Encapsulation is used to stop access to variables and methods.
6.Inheritance: - It is one of important concepts of object-oriented programming which is directly associated with real world life. In this child class acquired all properties and behavior of parent’s object.
7.Polymorphism:- It contain two words “poly” and “morphs”. Poly defined as many and morphs defined as form or shape. So, we can say that one task can perform in many ways.
OOPS | Procedural oriented |
---|---|
Development and maintenance of programs are easier. | It is not easy to maintain the program if program become so lengthy. |
It is problem Solving approach and computation is done by using object. | Step by Step Program will execute |
It supports the data hiding. | It is less secure, because it doesn’t provide any data binding. |
The example of Oops programming is Java, C++, .net etc. | The example of Procedural programming is C, Fortran. |
When new version of any language has release then, new language supports all the syntax of older version, therefore it is easier to switch to new version released. But In case of Python the New version Python 3 is totally different from Python 2.
The Differences are listed below:Def main (): Print (“Welcome to Quick Assignment Help”) If _name_==” _main_”: Main()
Def main (): Print “Welcome to Quick Assignment Help” If _name_==” _main_”: Main()
The first Program in Python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32 Type "copyright", "credits" or "license ()" for more information. >>> print(" Welcome to QAH") Welcome to QAH >>>
Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> print " Welcome to QAH" Welcome to QAH >>>
NEW YEAR OFFER 50% OFF !!! Order Now
NEW YEAR OFFER 50% OFF !!
Lets take Best opinion from our Expert Tutors Today! Order Now
*Disclaimer: The reference papers provided by QuickAssignmentHelp.net serve as model papers for students and not to be submitted as it is. These papers are intended to used for research and reference purposes only.
Copyright © 2024 QuickAssignmentHelp.net All right reserved.