... in num:
if i%2!=0:
temp_num.append(i)
num=temp_num
print(num)