Encapsulation in python

Encapsulation in Python

The encapsulation in python means wrapping the data members and member functions in a single block of code. Encapsulation protects the wrapped data by directly accessing the data from outside …

Read more

Python Strftime Method with Examples

Python Strftime

The python strftime() method returns the string which represents the date, time objects. The strftime() method is defined in the datatime library. To use this function, we need to import …

Read more

slicing in python with examples

slicing in python

Python provides a new operator, namely the slice operator. With the help of a slice operator, we can divide the objects as per our requirement. Also, we can use this …

Read more

Pin It on Pinterest