lis =[3,4,5,6] for j in lis: lis.remove(j) lis
Result -[3,4] I tried pop() also but couldn\'t remove all elements