мне нужно нарисовать линию между несколькими городами, используя добавить линию. Координаты городов берутся из списка. Однако я не знаю, как мне ввести конечные координаты. Вот код до сих пор:
def a2level1():
cityXCoordinate=[ 43, 93,180,205,254,310,326,348,372,398]
cityYCoordinate=[308,145, 82,199,335,373,432,346,333,263]
map = makePicture()
show(map)
cities = [requestInteger("Enter the number of cities you would like to visit")]
for number in cities:
print number
for number in range(0,number):
print number
city = [requestInteger("Please choose a city number")]
while city <= number:
city = [requestInteger("Please choose a city number")]
addLine(map,cityXCoordinate[city],cityYCoordinate[city], cityXCoordinate[city], cityYCoordinate[city])
repaint(map)