American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6:00 PM- Python OOP- Joshua

April 23 @ 6:00 pm - 7:00 pm

Today We did

  • continue with dictioanries with classes review

 

 

Homework
Link to review
https://drive.google.com/file/d/1kGkhBCy1dbJ8XMP5MjB03Wnlw9b3_vUN/view?usp=sharing

#Homework
#Part 1 Fill this in
class Pokemon:

    def __init__(self,name, type, hp, attack):
        # fill in this part
        pass

    def use_move(self):
        # print ("name uses type attack") but with the pokemons name,type, and attack
        pass


# part 2 create a team of 6
my_pokemon_team = {}
# i want you to  put 4 in your pokemon team
# use a number for its key (1,2,3,4) or any thing really
# for the value, but a pokemon object  made from the class template

# part 3
# i want to do the same proccess
# I need you to print the third pokemons type
# use a for loop to print each pokemons name, type , and attack
# your hint( you can use .use_move() to print this)




Details

Date:
April 23
Time:
6:00 pm - 7:00 pm