what are x[i] and y[i] ? It looks to me, without running it, like they haven’t been defined
also, your code is not formatted and you haven’t included the full stacktrace
what are x[i] and y[i] ? It looks to me, without running it, like they haven’t been defined
also, your code is not formatted and you haven’t included the full stacktrace