Skip to content

Instantly share code, notes, and snippets.

@amites
Created August 20, 2016 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amites/01f90f30fac9ac8f98b6764cc0aef814 to your computer and use it in GitHub Desktop.
Save amites/01f90f30fac9ac8f98b6764cc0aef814 to your computer and use it in GitHub Desktop.
# solution to entry problem 1
def multiply(a, b):
return a * b
# solution to entry problem 2
class Person:
def __init__(self, name):
self.name = name
def greet(self, other_name):
return "Hi {0}, my name is {1}".format(other_name, self.name)
p = Person()
p = Person('Bill')
p.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment