Introduction: Python Programming - Simple One Using a Class and Method
# Basic program that creates a class and a method
# create a class called "Person"
# Create method "hello"
# Note: must use 'self' in parameter list
print "Hello world!"
# create object "bob" of class "Person"
bob = Person()
# call method "hello" on object "bob"
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.