Python - Methods and Behavior Definition
What will be the output of this code?
class Bird:
def __init__(self, species):
self.species = species
def sing(self):
return f"{self.species} sings beautifully!"
b = Bird('Canary')
print(b.sing())