Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wcb = 327
- if (0<=wcb<=90):
- rb = f"N {wcb} E" if wcb!=360 else f"N 0 E"
- elif 90<wcb<=180:
- rb = f"S {180-wcb} E"
- elif 180<wcb<=270:
- rb = f"S {wcb-180} W"
- else:
- rb = f"N {360-wcb} W"
- print(rb)
Advertisement
Add Comment
Please, Sign In to add comment