Python OOP Projects
This digital download includes 3 Python OOP projects to learn and practice Object-oriented programming:
1) Treasure hunt game (text game): create an interactive program with OOP to play the treasure hunt (no graphics). You will be requested to design three classes including several methods to go through the different stages of the game. In some parts, the program will request the user interaction and based in that input and the data provided (excel file) the program will have to find and notify the winners.
2) Caribbean Cruise: create a decision making program to select the best cruise for Christmas. You will receive four files with the features, amenities and activities of four different cruises operators and through object oriented programming all available options should be displayed and selected the most convenient according to certain preferences.
3) Rolling dices game: you have to simulate the dices rolling score through the “random” library and given a pre defined set of rules, you will have to program the command line game so that it finds the winner at each round.
All projects have a guidelines section where the challenge is broken down in multiple small exercises (more than 10). This way, you finish the challenge step by step solving problems about classes, methods, objects and other common elements of the OOP paradigm.
DOWNLOAD / CONTENT
You will receive an email with a ZIP file. It is a digital download always available on your Practity account.
You will find the following files in the zip:
- One PDF with the project description. It includes step by step guidance and hints to help you complete the tasks.
- A Jupyter Notebook with the solutions. It includes only the source code but also detailed explanations about how the code works.
IMPORTANT: to see the solutions (Notebook) you need to have Jupyter or the ANACONDA package installed on your machine. If you do not have it, you may download it here. It is free.
WHAT YOU WILL PRACTICE
– Creating Classes.
– Writing and calling methods.
– Define functions with “for/while” loops and conditional statements (if/else)
– Dictionaries and lists.
– Inheritance: use the __init__()
– Basic Pandas library to import a table saved in an Excel file.
Maria Lymperaiou is a software engineer at JP Morgan Chase Bank in the UK. She has been researcher at the European Organization for Nuclear Research (CERN) in Switzerland and holds a ME Electrical and Computer Engineering.
You must have a general knowledge of object oriented programming to be able to finish the challenges. You have attended an OOP introduction course and be familiar with concepts like classes, methods, objects, encapsulation, inheritance, instances etc.
It is also recommended (although not manadatory) to be familiar with the pandas library in order to read the input data when it is stored in spreadsheets.