A class can be thought of as a ‘blueprint’ for objects. These can have their own attributes (characteristics they possess), and methods (actions they perform). Objects have member variables and have behavior associated with them.
In python, a class is created by the keyword class
An object is created using the constructor of the class. This object will then be called the instance of the class.
OOPs
Object-Oriented Programming (OOPs) is a widely used concept to write powerful applications. As a data scientist, you will be required to write applications to process your data, among a range of other things.There are four fundamental concepts of Object-oriented programming –
Inheritance
Encapsulation
Data Abstraction
Polymorphism
Errors and Exception Handling
Errors are the problems in a program due to which the program will stop the execution.
There are types of Errors in python.
Syntax errors
Logical errors (Exceptions)
On the other hand, exceptions are raised when some internal events occur which changes the normal flow of the program. To know more about these Python Concepts, Error And Exception Handling covered in our Day 4 session check my blog at: k21academy.com/pythonday4
oin our Free Class to know more about it.