Skip to content

Instantly share code, notes, and snippets.

@nickcharlton
Created March 7, 2011 20:24
Show Gist options
  • Save nickcharlton/859141 to your computer and use it in GitHub Desktop.
Save nickcharlton/859141 to your computer and use it in GitHub Desktop.
Python Class Example
class MyClass:
def f(self):
print 'hello world'
x = MyClass()
x.f()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment