Created
July 13, 2021 02:17
-
-
Save audhiaprilliant/a8846db3c4b98571c77aea2e241734d4 to your computer and use it in GitHub Desktop.
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
| # 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