
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Explore object oriented programming in Python through hands-on coding exercises, focusing on fundamental topics and their implementation, with short explanations for solutions.
Explain implementing a class to compute each student's average. Iterate over the student list, sum their averages, and divide by the number of students.
Explore solving a Python object-oriented programming exercise by defining a student class, adding graded tuples, and computing the average grade through iteration.
Complete the simple person class in python by initializing with id, name, and a third attribute, and implement calculate persons to average that attribute over a list of person objects.
Complete the point and line class definitions to represent a line using two point objects, then implement is_parallel by comparing the lines' slopes.
Learn to define a Python rectangle class with width and height attributes, implement __init__ using self, and compute area and perimeter using those attributes.
Define a circle class with two methods, area and perimeter, computing area as pi times radius squared and perimeter as two pi times radius, using math.pi.
Complete a point class with x and y coordinates, assign them in the constructor, and implement a distance_from_origin method using sqrt(x^2 + y^2). This yields 5 for (3,4).
Extend the student class from the base person class and use the super function in the init method to invoke the energy method, initializing average.
Learn plus operator overloading for a rectangle class to create a new rectangle whose width and height equal the sums of two operands, with area calculation.
Learn how Python's == calls the __eq__ magic method to compare rectangle objects by width and height, and implement the equality check in the class.
Access solutions for every coding exercise, and request a short video explanation for any solution; this course includes video explanations for any coding exercise.
The Python programming language supports most of the well-known object-oriented programming capabilities. Every value in Python is represented using an object. Even the simple basic values, such as numbers and strings. Mastering object-oriented programming in Python will improve your in-depth understanding of every topic you learn in Python. This course was created in order to assist students that want to become Python developers to strengthen their programming skills through extensive coding exercises that focus on object-oriented programming in Python.
Strength Your Python Programming Skills in Python Through Extensive Coding Exercises That Focus on The Object-Oriented Programming in Python!
Learn how to define new classes
Learn how to define a class that extends another class
Learn how to overload operators in a new class you define
Become familiar with the magic functions and their role
Learn about the best OOP practices in Python
Become Well Familiar with Object-Oriented Programming in Python Through Extensive Coding Exercises
This course focuses on bridging the gap between theory and practical experience, by allowing you to experience extensive coding practice that focuses on object-oriented programming in Python.
This course assumes that you are already familiar with Python's support for object-oriented programming and you are now doing your first steps in strengthening your understanding through extensive practice. This course includes more than 10 coding exercises organized into separate topics. Every coding exercise includes code the student needs to complete its missing parts, and submit.
Taking this course, if you feel that you would like to have more coding exercises that refer to specific sub-topic in object-oriented programming please don't hesitate and let us know. We will do our best to meet your expectations.
If you encounter an exercise you fail to complete and have difficulties when trying to understand its solution please let us know and we will do our best to assist. We can easily create a video that explains it or improve a video that was already created.