FUNCTIONS : Function is sub-routine, which is design to perform a specific task. Functions ccontains 3 parts and they are as follows: FUNCTION DECLARATION
Category: Purna Tech Solutions
FILE HANDLING IN PYTHON File contains information. These files are 2 types and they are as follows Text file Binary File Now these files are
EXCEPTION HANDLING; Unexpected, Unwanted event that disturbs the normal flow of the
ABSTRACTION DEFINITION OF ABSTRACTION : The process of highlighting set of services and hiding the implementations in child class. We can achieve abstraction using abstract
ENCAPSULATION: The process of binding properties and behaviours in a single unit. or The process of binding data and methods in a single unit. We
INHERITANCE: The process of acquiring properties and behaviours from one class to another class. PARENT CLASS: Class which provides properties and behaviours is called “parent
CONSTRUCTOR: Constructors logics are executed only when object is created. Ex-1: class Myclass(): def __init__(self): print(“Hi”) def wish (self): print(“Hello”) c=Myclass() #Hi c.wish() #Hello
CLASS: Class is a logical entity. It contains logics of the application. Class is a blueprint, for single class, We can create multiple objects. We
FLOW CONTROL STATEMENTS/CONDITIONAL STATEMENTS IF STATEMENT : If