Mid2 18th_Removing_Odd_Number_in_List

 l=[]

for i in range(1,10):
    if i%2!=0:
        l.append(i)
print(l)
#output:
[1, 3, 5, 7, 9]

Comments

Popular posts from this blog

JAVA Lab Programs

HANGMAN GAME

WD 22. StylingLinks&Buttons