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'
1MyList = ["apple", "banana", "orange"]
2
3MyList.append("raspberry")
4# MyList is now [apple, banana, orange, raspberry]
1
2thislist = ["apple", "banana", "cherry"]
3
4thislist.append("orange")
5
6print(thislist)
7