Answers for "add lists pythons"

1

how to add lists to lists in python

fruits = ["watermelon","banana","Cherry","pineapple","oranges"]
vegitable = ["Tomato","potato","torry","bottle goud","bittre gourd"]
#adding fruits and vegitable in a list called dirty_dozen
dirty_dozen = [fruits, vegitable]
print(dirty_dozen)
Posted by: Guest on July-31-2021
0

how to add to a list python

a_list = [1,2,3]
a_list.append(4)
Posted by: Guest on September-19-2020

Python Answers by Framework

Browse Popular Code Answers by Language