Answers for "how to add lists to lists in python"

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

Code answers related to "how to add lists to lists in python"

Python Answers by Framework

Browse Popular Code Answers by Language