Created
June 25, 2019 04:53
-
-
Save dooyeoung/1662ee2980985b6b7ef73201a810054f to your computer and use it in GitHub Desktop.
check Quadrant - 사사분면 확인
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
def get_area(degree): | |
area = 1 | |
if degree > 0 and degree <=90: | |
area = 1 | |
elif degree > 90 and degree <=180: | |
area = 2 | |
elif degree > 180 and degree <=270: | |
area = 3 | |
elif degree > 270 and degree <=360: | |
area = 4 | |
elif degree < 0: | |
area = 4 | |
return area |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment