🌐
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
These are the companion exercises to the article, Python Classes Zero to Expert. 1. 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..." 2. Rewrite the code from the last question so that the test below works and prints “Fritz is moving…”
🌐
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 - It includes 28 main exercises, each accompanied by solutions, detailed explanations, and four related problems. The basic idea behind an object-oriented programming (OOP) is to combine both data and associated procedures ...
🌐
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 object concepts View Solution
Find elsewhere
🌐
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.
🌐
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.
🌐
W3Schools
w3schools.com › python › python_classes.asp
Python Classes
Python is an object oriented programming language. Almost everything in Python is an object, with its properties and methods. A Class is like an object constructor, or a "blueprint" for creating objects.
🌐
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.
🌐
Gitbooks
erlerobotics.gitbooks.io › erle-robotics-learning-python-gitbook-free › content › classes › exercisesclasses.html
Exercises:Classes | Erle Robotics Learning Python GitBook Free
Define a Point3D class that inherits from object Inside the Point3D class, define an __init__() function that accepts self, x, y, and z, and assigns these numbers to the member variables self.x,self.y,self.z. Define a __repr__() method that returns "(%d, %d, %d)" % (self.x, self.y, self.z). This tells Python to represent this object in the following format: (x, y, z).
🌐
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..."
🌐
w3resource
w3resource.com › python-exercises › oop › index.php
Python Object Oriented Programming - Exercises, Practice, Solution
Learn Python object-oriented programming (OOP) through exercises and solutions. Enhance your OOP skills by implementing classes for circles, persons, calculators, shapes, binary search trees, stacks, linked lists, shopping carts, queues, and banks.
🌐
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.
🌐
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 - (From easy to hard) We want to ... later reuse. Let’s start!!! Implement a constructor for the class Cache that takes as a single argument a generic function f and stores it internally....
🌐
LearnLearn
learnlearn.uk › a level computer science home › classes & objects programming exercises in python
Classes & Objects Programming Exercises in Python - A Level Computer Science
September 1, 2020 - Challenge 1 – Dog Class Class Dog Attributes: Name size Breed Default: ‘Unknown’ Date of birth in DD/MM/YYYY format Default: ‘Unknown’ Methods: Bark This should get the dog to bark (print out the word ‘woof!’) get_name This should return the dog’s name set_name This should allow the user to set an alphabetical name between 2 and…