Created
February 13, 2014 19:31
-
-
Save JakenHerman/8982126 to your computer and use it in GitHub Desktop.
love6 on Coding Bat
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 love6(a, b): | |
| sum = a+b | |
| diff = a-b | |
| diff2 = b-a | |
| if a == 6 or b == 6: | |
| return True | |
| elif sum == 6 or diff == 6 or diff2 == 6: | |
| return True | |
| else: | |
| return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment