/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 vote113 views1 answer
- 3 votes112 views2 answers
- 13 votes107 views3 answers
- -1 vote119 views1 answer
- 1 vote108 views1 answer
- 0 vote125 views2 answers
- 0 vote124 views1 answer
- 5 votes114 views1 answer
- 4 votes119 views1 answer
- 0 vote105 views1 answer