/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
- 5 votes220 views2 answers
- 1 vote223 views1 answer
- 0 vote231 views2 answers
- 2 votes230 views1 answer
- 9 votes250 views2 answers
- 0 vote207 views1 answer
- 0 vote192 views1 answer
- 0 vote247 views1 answer
- 13 votes204 views3 answers
- 0 vote201 views1 answer