✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
The following code segment is supposed to display all of the elements in a list with dashes between them. For example, if values contains [1, 2, 3, 4, 5] then the program should display 1-2-3-4-5.
result = ""for i in range(len(values)) : if i > 0 : _____________________ result = result + str(values[i]) print(result)What line of code should be placed in the blank to achieve this goal?