How to convert an angle from radians to degrees in Python

1 Answer

0 votes
import math

print(math.degrees(1))
print(math.degrees(-1))
print(math.degrees(0))
print(math.degrees(math.pi))
print(math.degrees(math.pi / 2))
print(math.degrees(math.pi / 4))


'''
run:

57.29577951308232
-57.29577951308232
0.0
180.0
90.0
45.0

'''

 



answered Oct 11, 2017 by avibootz

Related questions

1 answer 234 views
1 answer 157 views
3 answers 288 views
1 answer 169 views
1 answer 111 views
...