Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save meet100ni/2856aad954e16a59d1f3d059d0324c34 to your computer and use it in GitHub Desktop.
Save meet100ni/2856aad954e16a59d1f3d059d0324c34 to your computer and use it in GitHub Desktop.
Polar Coordinates HackerRank Solution
# 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