Unit 5 Session 1 (Click for link to problem statements)
Understand what the interviewer is asking for by using test cases and questions about the problem.
__init__
that has been predefined in the class to initialize a new object with specific attributes.Plan the solution with appropriate visualizations and pseudocode.
General Idea: Instantiate a Pokemon object with the specified name and types by calling the constructor.
1) Instantiate a Pokemon object using the class constructor, providing "Pikachu" for the name and ["Electric"] for the types.
2) Store the new object in a variable named `my_pokemon`.
⚠️ Common Mistakes
my_pokemon = Pokemon("Pikachu", ["Electric"])