Add Item To Python List

Source URL: N/A

Language: python

Created on: 2021-07-31 08:35:41

#Add item to python list
languages = ['C', 'Kotlin', 'Javascript']
user_input = input('Enter a programming language...')
languages.append(user_input)
for i in languages:
  print(i)
#Result
>>Enter a programming language...[ Python|    ]
>>'C'
>>'Kotlin'
>>'Javascript'
>>'Python'
Add Item To Python List
content_copy