Jan-19-2017, 10:39 PM
As micseydel said. "1:" is not valid python code. Are you trying to do some sort of select or case statement? Those do not exist in Python. You have to use if/elif/else:
More descriptive variable names would be good, too.
if i == 1: cuts(x, y, L-vx[i], h) elif i == 2: # cuts call for 2 elif i == 3: # cuts call for 3 elif i == 4: # cuts call for 4However, you're going to run into other problems. Your function has no return statement. All it will ever return is None. You probably want to return the results of the recursive calls, and something from the final else statement, but that's not entirely clear to me.
More descriptive variable names would be good, too.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures