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
- Polar Coordinates
- Discussions
Polar Coordinates
Polar Coordinates
Sort by
recency
|
482 Discussions
|
Please Login in order to post a comment
Here is HackerRank Polar Coordinates in python solution - https://programmingoneonone.com/hackerrank-polar-coordinates-solution-in-python.html
from cmath import phase
z = complex(input())
print(round(abs((z)), 3))
print(round(phase((z)), 3))