American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

4:30 PM – Python OOP – Gamas

April 5, 2022 @ 4:30 pm - 5:30 pm

Today We Do
  1. We completed SchoolApplication
  2. We started learning about Inheritance
  3. We started MonsterInheritance project
Homework
  1. Continue on MonsterInheritance project
  2. We want to continuously list all monsters and then get user selection like below. If user enter “exit” stop the loop. To list all the monsters like below, you have to use for loop to go through all elements inside the dictionary. Look at Feb15_StudentClass.py if you forgot how to loop through a dictionary.
  3. Your have 200 health remaining.
    
    Please choose your monster: 
    Troll - 50 healths - 30 Max attack points.
    Water Golem - 30 healths - 20 Max attack points.
    Dragon - 100 healths - 50 Max attack points.
    Enter your selection (enter "exit" to quit): asdasdf
    
    Please choose your monster: 
    Troll - 50 healths - 30 Max attack points.
    Water Golem - 30 healths - 20 Max attack points.
    Dragon - 100 healths - 50 Max attack points.
    Enter your selection (enter "exit" to quit): exit

Details

Date:
April 5, 2022
Time:
4:30 pm - 5:30 pm
Verified by MonsterInsights