Answers for "add a value to list python"

0

add item to python list

#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'
Posted by: Guest on July-31-2021
0

add items to list python

list.append()
Posted by: Guest on January-15-2021

Code answers related to "add a value to list python"

Python Answers by Framework

Browse Popular Code Answers by Language