What is the correct way to create an instance of the class Fruit if it is defined as follows:
class Fruit:
def __init__(self, name, color):
self.name = name
self.color = colorWhat is the correct way to create an instance of the class Fruit if it is defined as follows:
class Fruit:
def __init__(self, name, color):
self.name = name
self.color = colorCreate a free account to access the full topic