lis = ['vankam',2, 5.6, '2',834,'good'] sub_lis = ['good', 2,] print("list: ",lis) print("sub_list: ",sub_lis) if all(elements in lis for elements in sub_lis): print("sub_list is the true subset of the list") else: print("It is not a true sub_list") sub_lis=['7',90,'vanakam'] print("list: ",lis) print("sub_list: ",sub_lis) if all(elements in lis for elements in sub_lis): print("sub_list is the true subset of the list") else: print("It is not a true sub_list")