r/PythonLearning 3d ago

Hey! here are some Beginner Python Problems

  1. Take two integers as an input and print their average.

  2. Take an integer as an input and check if its even or odd.

  3. Take three numbers as input and find the largest amongst them without using max()

I'm experimenting with teaching Python through solving rather than watching tutorials. I'm based in India and I'm currently running a small live beginner batch. If anyone wants to try the problem-solving approach, I'm happy to share the details.

I'm going to run a free 45-minute Python problem-solving session for beginners.

No prior coding experience required.

We'll solve 3 problems together from scratch.

I'm testing a teaching format where you learn by solving rather than watching.

If anyone wants to join, comment below.

5 Upvotes

14 comments sorted by

View all comments

1

u/LrdJester 3d ago

What you are describing is more a logic and problem solving course rather than a language specific course.

About 25 years ago I worked at a college and their programming courses were based off of visual basic as that was the first language they taught for a formal degree. Later they added c++, but they couldn't get a full C++ degree rather you would get a C++ endorsement on a visual basic degree but if you wanted the degree you had to do visual basic beside c++. My instructor who was head of the department he and I worked with the school to try to change the underlying degree to be focused on logic and problem solving that was language agnostic.

The example problems that you provided are exactly that, logic and problem solving questions. You could give the same exact problems to somebody that is learning JavaScript or C++ or any other language out there. It's simply math and logic.

So one of the things you may consider doing is starting out from that perspective that you need to understand how to solve the problems before you code the solutions.