Dec-23-2018, 10:39 PM
Bonjour! Pardon moi mais j'ecris en anglais parceque mon fracais est inadequate.
The problems appears to stem from x being larger than y on line 53. If the low end of the range is larger than the upper end, the step must be negative.
For example:
The problems appears to stem from x being larger than y on line 53. If the low end of the range is larger than the upper end, the step must be negative.
For example:
# Will not work because the default step is +1 # We cannot add 1 to 200 and end at 100. for x in range(200,100): print(x) # Will print from 200 backwards to 101 for x in range(200,100,-1): print(x)Off hand, I am not sure how to resolve the issue. The x-axis and y-axis values should be in separate range() calls. Beyond that, I do not understand the objective well enough to provide more. Based on the starting coordinates, how are you determining the destination?