Hi Guys, Welcome to my channel. In this video you will learn about how to Sort a Nested List, Sort a key_list, Verify if Sub List Contains key_list and remove it using python Python Scripts ====================== https://codewithtj.blogspot.com/2024/... Python Functions Solved ========================== https://codewithtj.blogspot.com/2023/... Python Programs Solved ============================ https://codewithtj.blogspot.com/2023/... Code ============================= """ Sort a Nested List, Sort a key_list, Verify if Sub List Contains key_list and remove it """ nested_list = [[5, 4, 1, 2, 3], [5, 4, 1, 2, 3], [7, 6, 5, 3, 1], [2, 3, 4, 5, 9, 10], [5, 4, 1, 2, 3]] key_list = [5, 2, 1] for items in nested_list: items.sort() print(nested_list) key_list.sort() print(key_list) list_delete = [] for items in nested_list: if all(item in items for item in key_list): list_delete.append(items) for elements in list_delete: nested_list.remove(elements) continue print(nested_list) Keywords ============================= #python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners