We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Math
- Find Angle MBC
- Discussions
Find Angle MBC
Find Angle MBC
Sort by
recency
|
787 Discussions
|
Please Login in order to post a comment
from math import degrees, atan2
ab = float(input()) bc = float(input())
mbc = round(degrees(atan2(ab, bc)))
print(str(mbc) + "\xb0")
When I don't return the degree symbol (°), my error is that my output (ie. 45) doesn't match the expectation (ie. 45°). When I do return the degree symbol, my error is that non-ascii characters are not allowed. Am I the only person encountering this issue?