Okay I was just mucking around on python. I have no programming experience at all, and I havent yet finished school anyhow, but I was interested in python and many say that it is great and everything... So I was trying to make a code that would solve this problem

This is not homework BTW

I KNOW that it is a very messy, ugly code, with wastefull lines and stuff, but I have no experience in any programming language whatso ever so im dumb :)

Here is the problem its just an extra question from maths homework that I thought I might try

Explore other triangles for which where sintT=cos**a**T where a is a positive integer.

so, this is whole code: Several things to note first!

I only need to find out what the angle is in degrees, which is x so I have everything as blah, but for myself i just though

```
from math import sin, cos, radians
global x
x = .1
def math():
global x
bla = sin(radians(x))
c2 = blah = cos(radians(x)*2)
c3 = blah = cos(radians(x)*3)
c4 = blah = cos(radians(x)*4)
c5 = blah = cos(radians(x)*5)
c6 = blah = cos(radians(x)*6)
c7 = blah = cos(radians(x)*7)
c8 = blah = cos(radians(x)*8)
c9 = blah = cos(radians(x)*9)
if x < 180:
if bla == blah:
print(x)
x = x+.1
math()
else:
x = x+.1
math()
else:
print("done")
math()
```

It gives me the location of an error alot of time then says:

```
line 17, in math
if x < 180:
RuntimeError: maximum recursion depth exceeded in comparison
```

I suppose this means that it wont allow 1800 repeats to find out the stuff.

any suggestions?

also any suggestions on specific thingies to clean up the code and make numbers like sqrt(3) be able to be detected, as thats one of the answers

thanks

Dragazarth