Created
August 20, 2016 19:16
-
-
Save amites/01f90f30fac9ac8f98b6764cc0aef814 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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