Created
May 13, 2020 13:32
-
-
Save meet100ni/2856aad954e16a59d1f3d059d0324c34 to your computer and use it in GitHub Desktop.
Polar Coordinates HackerRank Solution
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
# Enter your code here. Read input from STDIN. Print output to STDOUT | |
import cmath | |
r = complex(input().strip()) | |
print(cmath.polar(r)[0]) | |
print(cmath.polar(r)[1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment