I came across this syntax error but have no idea what is going on. The code is below:
def combine_if(x, y):
"*** YOUR CODE HERE ***"
m=1
m<n
def g(m):
term(m)=y
return m
if y==pred:
return combiner(x,term(y)
else:
return combine_if(x,term(m+1))
It says the else statement has a syntax error. Any ideas?
Thanks
Aucun commentaire:
Enregistrer un commentaire