0

How can I assign an element from a list to another list in a determined place?

7th Mar 2021, 7:03 PM
Blanca Tonda Pedraja
Blanca Tonda Pedraja - avatar
2 ответов
+ 1
#create a list a = list("blanca") #list you wanna change b = list("tondo") #change the last item for the 2nd in first list. b[4] = a[2] print(b) ''' Rember that this count starts from 0. ''' https://code.sololearn.com/c45bTjugxN4D/?ref=app
7th Mar 2021, 9:18 PM
▲TopGun ▲
▲TopGun ▲ - avatar
+ 1
Ok, thank you
7th Mar 2021, 9:21 PM
Blanca Tonda Pedraja
Blanca Tonda Pedraja - avatar