Skip to content

Instantly share code, notes, and snippets.

@JakenHerman
Created February 13, 2014 19:31
Show Gist options
  • Select an option

  • Save JakenHerman/8982126 to your computer and use it in GitHub Desktop.

Select an option

Save JakenHerman/8982126 to your computer and use it in GitHub Desktop.
love6 on Coding Bat
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