Python - Object-Oriented Programming Foundations
What will be the output of this code?
class Dog:
def __init__(self, name):
self.name = name
def bark(self):
return f"{self.name} says Woof!"
my_dog = Dog('Buddy')
print(my_dog.bark())