Answers for "append list as elements"

15

how to add element to list python

lst = ["f", "o", "o", "b", "a","r"]
lst.append("b")
print(lst) # ["f", "o", "o", "b", "a", "r", "b"]
Posted by: Guest on November-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language