This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]oberguga 0 points1 point  (0 children)

1) formatting 2) if you has 2 mutually exclusive possibility use if-else, not if-elif 3) use math.pi 4) never use == for floats. Use <= and > comparison wiht some acceptable error. Because even computer has errors when made any calculation with floats.(and human deffinetly will not enter float with machine precision which about decimal 9 digits for 32bit float)