Instantly share code, notes, and snippets.
(Looks like the gist comment doesn't want to preserve my spacing). Suggestion: Line up the r * sin(theta) under r * cos(theta)
to conform to PEP 8.
r * sin(theta)
r * cos(theta)
The arguments for polar should be named (line 6) to match the call on line 10. Better yet, the call on line 10 should be changed to have positional arguments so that it matches the original constructor for Point
missed one underscore on the second line
Fixed. Thanks for the suggestions!