/Python/Num = [7,8, 120, 25, 44, 20, 27] newnum = [] def remove_even(num): for i in num: if i%2 != 0: newnum.append(i) return newnum print("get_unevens") test(remove_even(num), [7,25,27])
Num = [7,8, 120, 25, 44, 20, 27] newnum = [] def remove_even(num): for i in num: if i%2 != 0: newnum.append(i) return newnum print("get_unevens") test(remove_even(num), [7,25,27])
Num = [7,8, 120, 25, 44, 20, 27] newnum = [] def remove_even(num): for i in num: if i%2 != 0: newnum.append(i) return newnum print("get_unevens") test(remove_even(num), [7,25,27])
0
- 0 vote136 views1 answer
- 0 vote108 views1 answer
- 15 votes102 views5 answers
- 16 votes113 views5 answers
- 0 vote99 views1 answer
- 18 votes132 views3 answers
- 0 vote104 views1 answer
- 3 votes103 views2 answers
- 7 votes95 views2 answers
- 2 votes132 views1 answer