Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def is_even(n):
- return n%2==0
- def list_odd(odd_list):
- res=[]
- for i in odd_list:
- if not is_even(i):res.append(i)
- print res
- return res
- list_odd([1,24,7,34,8])
- m=[1,65,4,3,72]
- list_odd(m)
Advertisement
Add Comment
Please, Sign In to add comment