How to remove a list from list of lists in Python

1 Answer

0 votes
list_of_lists = [['python', 45, 937],
                 [7, 'java', 3.14],
                 ['c++', True, 'c']]

del list_of_lists[1]

print(list_of_lists)


     
 
'''
run:
 
[['python', 45, 937], ['c++', True, 'c']]

'''

 



answered Jan 11, 2021 by avibootz
...