• Post category:StudyBullet-5
  • Reading time:21 mins read


What you will learn

solve 150+ exercises in Python object-oriented programming – OOP

namespaces and scopes (local, enclosing, global, built-in)

LEGB rule

use of *args and **kwargs

classes and objects

visibility of variables (public, protected, private)

class attributes

instance attributes

decorator @property

computed attributes

class method, decorator @classmethod

static method, decorator @staticmethod

special methods: __new__(), __init__(), __repr__(), __str__(), __len__() and many more

single inheritance, multiple inheritance

MRO – Method Resolution Order

super()

abstract classes

the ABC class and the @abstractmethod decorator

work with documentation and Stack Overflow

guaranteed instructor support

Description

——————————————————————————

RECOMMENDED LEARNING PATH

——————————————————————————

PYTHON DEVELOPER:

  • 200+ Exercises – Programming in Python – from A to Z

  • 210+ Exercises – Python Standard Libraries – from A to Z

  • 150+ Exercises – Object Oriented Programming in Python – OOP

  • 150+ Exercises – Data Structures in Python – Hands-On

  • 100+ Exercises – Advanced Python Programming

  • 100+ Exercises – Unit tests in Python – unittest framework

  • 100+ Exercises – Python Programming – Data Science – NumPy

  • 100+ Exercises – Python Programming – Data Science – Pandas

  • 100+ Exercises – Python – Data Science – scikit-learn

  • 250+ Exercises – Data Science Bootcamp in Python

  • 110+ Exercises – Python + SQL (sqlite3) – SQLite Databases

  • 250+ Questions – Job Interview – Python Developer

SQL DEVELOPER:

  • SQL Bootcamp – Hands-On Exercises – SQLite – Part I

  • SQL Bootcamp – Hands-On Exercises – SQLite – Part II

  • 110+ Exercises – Python + SQL (sqlite3) – SQLite Databases

  • 200+ Questions – Job Interview – SQL Developer

JOB INTERVIEW SERIES:

  • 250+ Questions – Job Interview – Python Developer

  • 200+ Questions – Job Interview – SQL Developer

  • 200+ Questions – Job Interview – Software Developer – Git

  • 200+ Questions – Job Interview – Data Scientist

——————————————————————————

COURSE DESCRIPTION


Get Instant Notification of New Courses on our Telegram channel.


——————————————————————————

150+ Exercises – Object Oriented Programming in Python – OOP

Welcome to the course 150+ Exercises – Object Oriented Programming in Python – OOP, where you can test your Python programming skills in object-oriented programming (OOP) and complete over 150 exercises!

Some topics you will find in the exercises:

  • namespaces and scopes

  • LEGB rule

  • *args and **kwargs

  • class attributes

  • instance attributes

  • the __init__() method

  • visibility of variables/attributes

  • encapsulation

  • computed attributes

  • class method – decorator @classmethod

  • static method – decorator @staticmethod

  • special methods, __new__(), __init__(), __repr__(), __str__(), __len__() and many more

  • inheritance, single inheritance, multiple inheritance

  • MRO – Method Resolution Order

  • super()

  • abstract classes, the ABC class and the @abstractmethod decorator

The course is designed for people who have basic knowledge in Python and OOP concepts. It consists of over 150 exercises with solutions. This course is focused on practical learning. This is a great test for people who are learning the Python language and OOP and are looking for new challenges. Exercises are also a good test before the interview. Many popular topics were covered in this course.

If you’re wondering if it’s worth taking a step towards Python, don’t hesitate any longer and take the challenge today!

English
language

Content

Configuration (optional)

Info
Google Colab + Google Drive
Google Colab + GitHub
Google Colab – Intro
Anaconda installation – Windows 10
Introduction to Spyder
Anaconda installation – Linux

Tips

A few words from the author

Starter

Exercise 1
Solution 1

Namespaces and Scopes

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3

The LEGB rule

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4
Exercise 5
Solution 5

Reminder: *args and **kwargs

Exercise 1
Solution 1
Exercise 2
Solution 2

Classes – the basics

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4
Exercise 5
Solution 5
Exercise 6
Solution 6
Exercise 7
Solution 7
Exercise 8
Solution 8
Exercise 9
Solution 9
Exercise 10
Solution 10
Exercise 11
Solution 11
Exercise 12
Solution 12
Exercise 13
Solution 13

Class attributes

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4
Exercise 5
Solution 5
Exercise 6
Solution 6
Exercise 7
Solution 7
Exercise 8
Solution 8
Exercise 9
Solution 9
Exercise 10
Solution 10
Exercise 11
Solution 11

Instance attributes

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4
Exercise 5
Solution 5
Exercise 6
Solution 6
Exercise 7
Solution 7

The __init__() method

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4
Exercise 5
Solution 5
Exercise 6
Solution 6
Exercise 7
Solution 7
Exercise 8
Solution 8
Exercise 9
Solution 9

Visibility of variables

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4

Encapsulation

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4
Exercise 5
Solution 5
Exercise 6
Solution 6
Exercise 7
Solution 7
Exercise 8
Solution 8
Exercise 9
Solution 9
Exercise 10
Solution 10
Exercise 11
Solution 11
Exercise 12
Solution 12
Exercise 13
Solution 13
Exercise 14
Solution 14
Exercise 15
Solution 15
Exercise 16
Solution 16
Exercise 17
Solution 17

Computed Attributes

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4
Exercise 5
Solution 5

Class method – decorator @classmethod

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4
Exercise 5
Solution 5

Static method – decorator @staticmethod

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4

Special methods

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4
Exercise 5
Solution 5
Exercise 6
Solution 6
Exercise 7
Solution 7
Exercise 8
Solution 8
Exercise 9
Solution 9
Exercise 10
Solution 10
Exercise 11
Solution 11
Exercise 12
Solution 12
Exercise 13
Solution 13
Exercise 14
Solution 14
Exercise 15
Solution 15
Exercise 16
Solution 16
Exercise 17
Solution 17
Exercise 18
Solution 18
Exercise 19
Solution 19

Inheritance

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4
Exercise 5
Solution 5
Exercise 6
Solution 6
Exercise 7
Solution 7
Exercise 8
Solution 8
Exercise 9
Solution 9
Exercise 10
Solution 10
Exercise 11
Solution 11
Exercise 12
Solution 12
Exercise 13
Solution 13
Exercise 14
Solution 14
Exercise 15
Solution 15
Exercise 16
Rozwiązanie 16
Exercise 17
Solution 17

Abstract classes

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4
Exercise 5
Solution 5
Exercise 6
Solution 6
Exercise 7
Solution 7

Summary

Exercise 1
Solution 1
Exercise 2
Solution 2
Exercise 3
Solution 3
Exercise 4
Solution 4
Exercise 5
Solution 5
Exercise 6
Solution 6
Exercise 7
Solution 7
Exercise 8
Solution 8
Exercise 9
Solution 9
Exercise 10
Solution 10
Exercise 11
Solution 11
Exercise 12
Solution 12
Exercise 13
Solution 13
Exercise 14
Solution 14
Exercise 15
Solution 15
Exercise 16
Solution 16
Exercise 17
Solution 17
Exercise 18
Solution 18
Exercise 19
Solution 19
Exercise 20
Solution 20
Exercise 21
Solution 21
Exercise 22
Solution 22
Exercise 23
Solution 23

Bonus

Discount coupons