Write a program to Remove all items from the list


Topic: Write a program to Remove all items from the list

Solution

list = [{1, 2}, ('a'), ['1.1', '2.2']]
list.clear()
print('List:', list)



List all Python Programs