Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JL-Cox/2a9babc7bd7bf6c67adb1c0429a4ac16 to your computer and use it in GitHub Desktop.
Save JL-Cox/2a9babc7bd7bf6c67adb1c0429a4ac16 to your computer and use it in GitHub Desktop.
CodeWarsKata_DetermineOffspringSex_06272018
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