✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Imagine you have a class Wizard that has attributes like name, house, level, and spells, and methods like cast_spell(), learn_spell(), and get_info(). This class allows you to create wizard objects and perform actions like casting and learning spells.
Which of the following is the correct way to create an instance of the Wizard class with the name "Gandalf", house "Grey", level 20, and spells ["Fireball", "Teleport"]?