My goal is to create a program that will convert degrees to radians. The formula is (degrees * 3.14) / 180. But python keeps giving me this error:
Traceback (most recent call last):
File "2.py", line 6, in <module>
main()
File "2.py", line 4, in main
degrees = (degrees * 3.14) / 180
TypeError: can't multiply sequence by non-int of type 'float'
From this code:
def main():
degrees = raw_input("Enter your degrees: ")
float(degrees)
degrees = (degrees * 3.14) / 180
main()
EDIT: Thank you all for the help!