Blog

What is the output of the following code?

class Fruit:
def __init__(self, name=”Orange”):
self.name = name

def show_name(self):
print(f’{self.name}’)

fruit = Fruit()
fruit.show_name()