Skip to content

Instantly share code, notes, and snippets.

@audhiaprilliant
Created July 13, 2021 02:17
Show Gist options
  • Select an option

  • Save audhiaprilliant/a8846db3c4b98571c77aea2e241734d4 to your computer and use it in GitHub Desktop.

Select an option

Save audhiaprilliant/a8846db3c4b98571c77aea2e241734d4 to your computer and use it in GitHub Desktop.
# Check gender
def checkGender(ID):
gender = str(ID)[6:7]
# Check status
status = False
sex = None
if int(gender) in range(8):
if int(gender) in range(4):
sex = 'Man'
else:
sex = 'Woman'
status = True
return (status, sex)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment