j = 0
while j < 36:
A[j] = (0.04*(x[j]**2))+(0.04*(y[j]**2))
print(type(A))
B[j] = (x[j]**2)+(y[j]**2)
C[j] = (0.01/(y[j]**2)
#Delta[j] = ((2*(math.sqrt((A[j] / B[j]) + C[j])))/Rsq[j])
j += 1Error:runfile('C:/Users/ckirk/.spyder-py3/Labs semester 2 week 3/program.py', wdir='C:/Users/ckirk/.spyder-py3/Labs semester 2 week 3')
File "C:\Users\ckirk\.spyder-py3\Labs semester 2 week 3\program.py", line 36
j += 1
^
SyntaxError: invalid syntaxreally don't understand why i'm getting an error here as earlier in the code I did the same thing (with different variables). It even does it for the Delta part (hence why I put it as a comment to try an debug)
buran write Feb-19-2021, 12:35 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
