How to add an item to a list in Python

preview_player
Показать описание


Code from video:
*****************
company = ['julia', 'erick', 'dillon']
company
company

Connect with us!
*****************
Рекомендации по теме
Комментарии
Автор

great tutorial, quick and straight to the point

MTMByt
Автор

how do you write parentheses with cursor in between on python console?

gauravmonga
Автор

Sir.. How to insert over layer lists inside an existing list

ananthuprasad
Автор

Thanks but how add a value into the empty list using a function

rumanathaj
Автор

Is there a way in which I could replace "jill" with an input. For instance:
example = ["Example", "Example 2", "Example 3"]
input1 = input("")
example.insert(1, input1)
When I do this it doesn't work. How could I do it?

jasperr