1#append to list
2lst = [1, 2, 3]
3something = 4
4lst.append(something)
5#lst is now [1, 2, 3, 4]
1#Add item to python list
2languages = ['C', 'Kotlin', 'Javascript']
3user_input = input('Enter a programming language...')
4languages.append(user_input)
5for i in languages:
6 print(i)
7#Result
8>>Enter a programming language...[ Python| ]
9>>'C'
10>>'Kotlin'
11>>'Javascript'
12>>'Python'