0
$\begingroup$

Is there any recommendation on an online platform that teaches and allows practicing object-oriented programming (OOP) in Python?

I am familiar with Hackerrank and HackerEarth, however, they do not have practice problems related to Object-Oriented Programming in Python but they do have problems related to other concepts.

$\endgroup$
3
  • 2
    $\begingroup$ I don't think that any such resource exists, though I would love to be wrong about that. $\endgroup$
    – Ben I.
    Apr 22, 2021 at 12:27
  • $\begingroup$ Can you be more specific on "practice for OOP"? Maybe looking in the SELF / Smalltalk / old Javascript area or reading through Bertrand Meyer's books might be helpful. $\endgroup$
    – DarkTrick
    Apr 24, 2021 at 11:29
  • 1
    $\begingroup$ Why not take any book with exercises and do them online? And why is online so much better than in a local IDE? $\endgroup$ Feb 27 at 15:10

1 Answer 1

0
$\begingroup$

replit.com allows you to code online and you can also set up tests for the Repl, as well as embed the code into a blog or LMS.

I've an example here based on a tutorial here. You'd need an account to "collaborate" but the images are below.

The code runs the main.py file when the "Run" button is activated.

I made a Point class in point.py and this is called from the main in main. the Point class

There are other features such as version control, sharing for a collab, database, forking, etc. the main file that gets exeuted

Repl introduced classroom some time ago- the demo video shows some of the capabilities for assignments. Last year this was replaced by Teams for Education.

While better, it is not free, but there is a 4-month free trial -- you can see a demo of this "update" here.

Each student "gets their own copy" of an assignment, and the interface is quite pleasant- they can see due dates, status, etc, and you can build in unit tests that they should pass before submitting an assignment.

Student view of assigned work

Github classroom (demo here) is another option but may not be the easiest to start with. Using Repl you could at least share code and have the class make their own Repls and write code to pass tests, or code a class given a class diagram or problem statement.

Hope this helps. Not exactly OOP Codingbat but might give you some ideas. Another useful site is this. It approaches OOP with Python using games. PyGame will run in repl as well, allowing some collaboration on games with many classes to be completed. An assignment can allow each student to get a fork of what you post, OR allow students in groups to get a fork between a group.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.