Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
286 B
1
Indexable
Never
class Cat:
    def __init__(self, name):
        self.name = name

    def kiss(self):
        return f"{self.name} gives a sweet kitty kiss!"

# Create a cat instance
my_cat = Cat("Whiskers")

# Call the kiss method
kiss_message = my_cat.kiss()

# Print the result
print(kiss_message)
Leave a Comment