~ OOP Programming and Classes - a gentle beginners introduction in Python


0 - Introduction and Pedagogy

Assuming you are competent with the basics of Python, Welcome!!!

Sometimes the best way to learn something is to solve problems and learn as you go along! Do go through the presentation on OOP and Classes below before you get started on the challenges that will take you through from absolute basics to creating a "Pong" type game using classes and Tkinter - no additional downloads or installations necessary

The concept of OOP and Classes is incredibly interesting and if you are learning this you are probably at an advanced level of learning python (A level/College/University or beyond). Object Orientated Programming is an approach that will take some thinking and re-thinking, but it will be well worth it. We start, as do all the solve and learn series sessions, with an introductory power point. You can then go through and solve/analyse all the challenges. Each challenge introduces various OOP concepts, and the pillars of object orientated programming such as abstraction, encapsulation, inheritance and polymorphism will be looked at.

Download Python 3 here:


In the following session we will be using TKINTER to create a "Pong" like game. No additional downloads necessary. TKINTER is Python's de-facto standard GUI (Graphical User Interface) package. It is a thin object-oriented layer on top of Tcl/Tk.

So click on the link on the left <<--- get started!



Code your solution here

Systems Life Cycle (in a nutshell): Analyse - Design - Create - Test - Evaluate. Designing something or writing out some pseudocode before you actually write code is always a good idea! Get in to the habit of doing so! You can draw your flowchart here and screenshot it.

A sample flow chart (design) for this particular challenge could look like:

Flowchart: Python program to get the Fibonacci series between 0 to 50
Each challenge section below provides an online drawing tool where you can dynamically create flowcharts. Screenshot them into your presentation for submission.

Solutions & Answers

Answers /Solutions in the "members area" drive under: "Solve and Learn >>SOLUTIONS"

Testing Table

You may want to read a little about Testing first. A teacher may go through some examples with you. Feel free to fill in the test table here, and screenshot it in to your powerpoint. Testing is absolutely essential once you have created a program!
Test No. Description Test Data(input) Expected Outcome Actual Outcome Further Action?
1
2
3
4
5
Coming soon!