|
#!/usr/bin/env python
|
|
|
|
# skeleton.py
|
|
|
|
class Person:
|
|
def __init__(self, name, greeting = "Hello!"):
|
|
self.name = name
|
|
self.greeting = greeting
|
|
|
|
def greet(self):
|
|
print(self.greeting)
|
|
print(f"My name is {self.name}")
|
|
|
|
friend = Person("Willow")
|
|
friend.greet()
|