Sep-16-2020, 10:41 PM
As others have said, you created numb as an int and are then trying to define variables inside of it.
There are at least two simple solutions:
1) Define a variable for each case.
There are at least two simple solutions:
1) Define a variable for each case.
#Instead of numb.x = 0 #use numb_x = 02) Use a dictionary
numb = {} numb['x'] = 0 numb['y'] = 0