Created
September 24, 2019 12:52
-
-
Save ivanjx/cd88c6fe4eef3ddf9e16e58a35c83f1f to your computer and use it in GitHub Desktop.
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
# Dapatkan jenis kelamin. | |
jenis_kelamin = input('Jenis kelamin (L/P): ') | |
# Dapatkan umur. | |
umur = input('Umur: ') | |
# Cek. | |
if umur < 10 or jenis_kelamin == 'P': | |
print('Anda bisa naik') | |
else: | |
print('Anda tidak bisa naik') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment