dotfiles/fake_home/.vim/templates/skeleton.py

14 lines
280 B
Python
Raw Normal View History

#!/usr/bin/env python
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()