... in num:
if i%2!=0:
temp_num.append(i)
num=temp_num
print(num)
What will be printed by the folowing code? num = [7, 8, 120, 25, 44, 20, 27] temp_num=[] for i?
Details:
Added 3+ months ago:
What will be printed by the folowing code?
num = [7, 8, 120, 25, 44, 20, 27]
temp_num=[]
for i in num:
if i%2!=0:
temp_num.append(i)
num=temp_num
print(num)
Answers
No answers have yet been posted. Add your answer to this question.