Created
June 28, 2018 02:58
-
-
Save JL-Cox/2a9babc7bd7bf6c67adb1c0429a4ac16 to your computer and use it in GitHub Desktop.
CodeWarsKata_DetermineOffspringSex_06272018
This file contains 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 chromosome_check(sperm): | |
if 'Y' in sperm: | |
return 'Congratulations! You\'re going to have a son.' | |
else: | |
return 'Congratulations! You\'re going to have a daughter.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment