class Dog: def_init__(self, name, age): self.name = name self.age age The correct way to instantiate the above Dog class
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
class Dog: def_init__(self, name, age): self.name = name self.age age The correct way to instantiate the above Dog class
Question 4 (2 points) Saved Select the correct method to write a list of lines to a file writelines(list) writelist(list) write(list)
class Dog: def_init__(self, name, age): self.name = name self.age age The correct way to instantiate the above Dog class is: Dog.create("Rufus", 3) Dog.__init__("Rufus", 3) Dog("Rufus", 3) Dog()