-
-
Save ichsanputr/124c73893ac8280a435d8f60192ee577 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
def check_even_odd(num): | |
if num % 2 == 0: | |
return "짝수" | |
else: | |
return "홀수" | |
print(check_even_odd(10)) # 결과: 짝수 | |
print(check_even_odd(7)) # 결과: 홀수 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment