Last active
August 16, 2016 14:32
-
-
Save erochest/c84a7fecfd66fb5057b30a03c41b2f9c 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
def square(number): | |
number = int(number) | |
return number**2 |
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
import hw1 | |
def test_1(): | |
assert hw1.square(5) == 25 | |
def test_2(): | |
assert hw1.square(5.0) == 25 | |
def test_3(): | |
assert hw1.square('5') == 25 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run this by running