In this code, I am getting different outputs if I change the line from temp=[] to temp.clear().
temp=[]
temp.clear()
t = int(input()) arr = list() temp =