/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 vote177 views2 answers
- 5 votes182 views6 answers
- 2 votes175 views1 answer
- 3 votes223 views1 answer
- 0 vote160 views1 answer
- 4 votes223 views4 answers
- 1 vote156 views1 answer
- 13 votes147 views1 answer
- 11 votes212 views6 answers
- 1 vote132 views1 answer