kkalog

Untitled

Jul 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. seq_of_nums = raw_input("Give me the sequence of numbers comma separated:")
  2. seq_of_nums = seq_of_nums.split(",")
  3. numbers = [x for x in seq_of_nums if int(str(x))%2!=0]
  4. print ",".join(numbers)
Advertisement
Add Comment
Please, Sign In to add comment