Q:

Write a Python program to print the numbers of a specified list after removing even numbers from it

0

Write a Python program to print the numbers of a specified list after removing even numbers from it. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

num = [7,8, 120, 25, 44, 20, 27]
num = [x for x in num if x%2!=0]
print(num)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now