Advertisement
here2share

# deg2radpi.py

Mar 19th, 2020
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. # deg2radpi.py
  2.  
  3. import math
  4.  
  5. z = 0
  6. incr = 5
  7. while z < 360 + incr:
  8.     print('{} degrees = {} radians'.format(z, abs(math.radians(z)-math.pi)))
  9.     z += incr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement