Добавил:
Вуз:
Предмет:
Файл:
3 cod
.py list_main = [1,2,3,4]
turple = (1,2,3,4)
list_first = list(turple) #1 way
number = 1234
list_second = [int (a) for a in str(number)] #2 way
list_third = list(range(1,5))#3 way
turple = (1,2,3,4)
list_first = list(turple) #1 way
number = 1234
list_second = [int (a) for a in str(number)] #2 way
list_third = list(range(1,5))#3 way
Соседние файлы в предмете Искусственный интеллект