30-Days-Of-Python
30-Days-Of-Python copied to clipboard
Day18 - Exercises: Level 1, task 2 - Major Error
The position of some particles on the horizontal x-axis are -12, -4, -3 and -1 in the negative direction, 0 at origin, 4 and 8 in the positive direction
points = ['-1', '2', '-4', '-3', '-1', '0', '4', '8'] sorted_points = [-4, -3, -1, -1, 0, 2, 4, 8] distance = 8 -(-4) # 12
In points there should be -12 instead of -1 and 2, thus the provided answer is completly wrong
Thanks for great course and keep up the good work ;)
(PS also minor typo in day 15: ImportError Example 1: TypeError)