Create a lit containing list, dictionary,tuple in Python
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways
Answers ( 3 )
list_in_list=[1,2,3,4,5]
dictionary_in_list = {“India”:”Delhi”,”Australia”:”Canberra”,”Canada”:”Toronto”}
tuple_in_list = (“Apple”,”Mango”,”Orange”)
Final_list=[list_in_list,dictionary_in_list,tuple_in_list]
list=[1,2,3,4,5]
Tuple=(‘a’,’b’,’c’,d’,’e’)
dict=(‘a’:1,’b’:2,’c’:3,’d’:4,’e’:5)
final_list=[list,Tuple,dict]
list=[2,3,1,4,5]
dict={‘Names’:[‘Ariana’,’Joey’,’Maria’,’Rachel’],’Scores_in_Maths’:[87,98,80,79]}
tup=(5,3,6,8,2)
f_list=[list,dict,tup]
print(f_list)