American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python OOP – Darin

January 7 @ 7:00 pm - 8:00 pm

What We Did Today:

  1. Reviewed how OOP works, and finished the supermarket application project
  2. Got started on MonsterInheritance project and learnt a bit about inheritance

Homework:

"""
Your homework is to implement option 2, looping over self.monsters, such that it prints like this:

Please select one of the following
1. Add Monster
2. List all monsters
3. Play Adventure
Enter your selection (Enter 'exit' to quit): 2
- Dragon - 100 health - 50 Max attack
- Troll - 50 health - 20 Max attack
- Water Golem - 30 health - 20 Max attack
- Cyclops - 60 health - 30 Max attack

If the user enters "3" as a selection, prompt the user for their name, and their health, 
and store these two variables as self variables

in other words, create two new attributes inside of def __init__ of the MonsterSystem class
"""

Notes:

You can contact me at ddjapri@ayclogic if you have any questions!

Details

Date:
January 7
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights