🌐
PYnative
pynative.com › home › python exercises › 30+ python object-oriented programming (oop) exercise: classes and objects exercises
30+ Python Object-Oriented Programming (OOP) Exercise: Classes and Objects Exercises
June 13, 2026 - This article provides 31 Python Object-Oriented Programming (OOP) practice questions with solutions. These exercises cover classes, attributes, methods, logic, inheritance, polymorphism, magic methods, encapsulation, type checking, and advance OOP concepts.
🌐
GitHub
github.com › Asabeneh › 30-Days-Of-Python › blob › master › 21_Day_Classes_and_objects › 21_classes_and_objects.md
30-Days-Of-Python/21_Day_Classes_and_objects/21_classes_and_objects.md at master · Asabeneh/30-Days-Of-Python
Classes and Objects · Creating a Class · Creating an Object · Class Constructor · Object Methods · Object Default Methods · Method to Modify Class Default Values · Inheritance · Overriding parent method · 💻 Exercises: Day 21 · Exercises: Level 1 · Exercises: Level 2 · Exercises: Level 3 · Python is an object oriented programming language.
Author: Asabeneh
Discussions

python exercises
Thoughts: Codewars Advent of Code r/dailyprogrammer (not updated "daily" anymore, but go through the history) More on reddit.com
🌐 r/learnpython
47
134
September 27, 2022
good websites for python exercises?
There's a number of sites with challenges/puzzles/problems https://app.codesignal.com/ https://projecteuler.net/ https://www.codewars.com/ https://www.zachtronics.com/ also has some games that, while not quite real world programming, do provide challenges of logic and programming methodology (Tis-100, shenzhen i/o) More on reddit.com
🌐 r/learnpython
11
16
May 14, 2022
Is there any exercise-based course for learning python?
I have a free book of 42 Python exercises for beginners: https://inventwithpython.com/pythongently/ More on reddit.com
🌐 r/learnprogramming
46
141
October 5, 2022
What are some websites that give beginner leveled Python exercises?

Hey, I think you are trying to figure out a project to do; Here are some helpful resources:

  • /r/learnpython - Wiki

  • Five mini projects

  • Automate the Boring Stuff with Python

  • RealPython - Projects

I am a bot, so give praises if I was helpful or curses if I was not. Want a project? Comment with "!projectbot" and optionally add easy, medium, or hard to request a difficulty! If you want to understand me more, my code is on Github

More on reddit.com
🌐 r/learnpython
71
421
February 21, 2021
People also ask

What is a class in Python?
A class is a blueprint for creating objects that share attributes and methods.
🌐
pythonbasics.org
pythonbasics.org › home › python basics › class(es) and objects in python
Class(es) and Objects in Python - pythonbasics.org
In Python object-oriented programming, why is the 'isinstance()' function preferred over 'type()' when checking object types, especially for classes with inheritance?
The 'isinstance()' function is preferred over 'type()' because it checks for subclass relationships and recognizes when an object is an instance of a class or any class derived from it. This is essential in inheritance hierarchies where subclasses are common, as it allows for flexible type checking across inherited classes. Conversely, 'type()' only checks for exact type matches, which can be limiting when working with inheritance .
🌐
scribd.com
scribd.com › document › 737782089 › Python-OOP-Exercise-Classes-and-Objects-Exercises
Python OOP Classes and Objects Exercises | PDF | Class (Computer ...
🌐
Codesolid
codesolid.github.io › exercises › PythonClassesExercises.html
Practice Exercises for Python Classes and Objects — Python In Practice
Which way would you think is simpler and more maintainable? 5. Create an abstract base class, Shape, with a single abstract method, draw. Implement two child classes, Elipse and Rectangle, that override the draw method.
🌐
Scribd
scribd.com › document › 737782089 › Python-OOP-Exercise-Classes-and-Objects-Exercises
Python OOP Classes and Objects Exercises | PDF | Class (Computer Programming) | Object Oriented Programming
This document contains an ... in Python. It includes 8 questions on topics like creating classes and objects, defining methods and instance variables, creating child classes that inherit from parent classes, and checking object types....
🌐
TechGeekBuzz
techgeekbuzz.com › home › blog › python › python object-oriented programming exercise - classes and objects exercises
Python Object-Oriented Programming Exercise - Classes & Objects
Let us get started with the Python OOP exercise. Solution: To create a class in Python, we use the class keyword, and to initialize the attribute during object creation, we define the __init__() method.
🌐
w3resource
w3resource.com › python-exercises › class-exercises
Python Class - Exercises, Practice, Solution - w3resource
July 9, 2025 - Write a Python program to create two empty classes, Student and Marks. Now create some instances and check whether they are instances of the said classes or not. Also, check whether the said classes are subclasses of the built-in object class or not.
🌐
Tutorjoes
tutorjoes.in › python_programming_tutorial › class_objects_programs_in_python
Python : Class and Object - Exercises and Solution
Write a python program to check Palindrome number using object oriented approach View Solution · 14. Write a program to Student height record program for a school in Python View Solution · 15. Write a python program to manage a phone store (mobile shop) record using class View Solution · 16. Write a python program to add two distances using class and ...
Find elsewhere
🌐
W3Schools
w3schools.com › python › python_classes.asp
Python Classes
Python Examples Python Compiler Python Exercises Python Quiz Python Challenges Python Practice Problems Python Server Python Syllabus Python Study Plan Python Interview Q&A Python Training ... Python is an object oriented programming language. Almost everything in Python is an object, with its properties and methods. A Class ...
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-oops-exercise-questions
Python OOP Exercise Questions - GeeksforGeeks
September 22, 2025 - Perfect for beginners and seasoned programmers looking to deepen their understanding of OOP in Python! Exercise 1: Create a class Greeter with a method greet(name) that prints a greeting for the provided name.
🌐
Python Basics
pythonbasics.org › home › python basics › class(es) and objects in python
Class(es) and Objects in Python - pythonbasics.org
PyChallenge has 200+ interactive exercises from beginner to interview prep. A class is a blueprint for creating objects that share attributes and methods.
🌐
Exercism
exercism.org › tracks › python › concepts › classes
Classes in Python on Exercism
Master Classes in Python by solving 49 exercises, with support from our world-class team.
🌐
YouTube
youtube.com › playlist
Starting Out With Python Chapter 10 Classes and Object Oriented Programming Exercises | classes and objects in python - YouTube
python This Playlist Contains the Exercise programs of the chapter 10 Classes and Object of the book Starting Out With Python. Starting Out With Python 10th ...
🌐
Llego
llego.dev › home › blog › practical exercises: creating and working with classes and objects in python
Practical Exercises: Creating and Working with Classes and Objects in Python - llego.dev
July 19, 2023 - Classes provide the blueprint for how objects are defined, enabling developers to model real-world entities with code. This guide will walk through practical exercises for creating custom classes and working with class instances as objects in Python.
🌐
Codesolid
codesolid.com › getting-started-with-python-classes
Python Classes Zero to Expert: A Tutorial with Exercises — CodeSolid.com 0.1 documentation
It’s hard to get away from objects in Python. Even those simple functions we think we’re creating in a script are wrapped in an object of the function type. The exercises for this article are below, but they’re also available as a downloadable Jupyter Notebook, or you can develop them online. ... The code below has two bugs. Can you spot them? Try to do it without running the code. class Pet: def init(self, name): self.name = name def move(): return f"{self.name} is moving..."
🌐
SevenMentor
sevenmentor.com › python-object-oriented-programming-exercises-solutions
Python Object-Oriented Programming Exercises, Solutions
2. Write a Python program to create a class representing a bank. Include methods for managing customer accounts and transactions. ... Create a class bank with create_account. A class bank with make_deposit. A class bank with make_withdrawal. ... Create an object of the class and execute all functions.
🌐
w3resource
w3resource.com › python-exercises › oop › index.php
Python Object Oriented Programming - Exercises, Practice, Solution
Write a Python program to create a person class. Include attributes like name, country and date of birth. Implement a method to determine the person's age. ... Write a Python program to create a calculator class.
🌐
AlgoMaster
algomaster.io › home › python › classes & objects — practice
Exercise: Classes & Objects | Python | AlgoMaster.io
June 6, 2026 - Exercise: Classes & Objects explained with clear examples, visuals, and practice questions in AlgoMaster's Python Programming course.
🌐
Medium
medium.com › @davidecosta023 › unlock-the-power-of-python-classes-fun-and-practical-exercises-inside-c49e84d6ec34
Mastering Object-Oriented Programming: Essential Class Exercises in Python | by Davidecosta | Medium
January 22, 2024 - In this exercise we want to implement a class Graph representing the mathematical structure known as graph. A graph is a collection of n nodes, labeled from 0 to n-1, connected by edges. To represent it we will use the adjacency list representation: our Graph object will contain a field adjlist , a list of lists, whose elements are the neighborhoods of each node.
🌐
Real Python
realpython.com › courses › object-oriented-programming-exercises
Python Basics Exercises: Object-Oriented Programming – Real Python
March 9, 2026 - In this Python Basics Exercises course, you'll review OOP, or object-oriented programming. You'll practice creating classes, using classes to create new objects, and instantiating classes with attributes.