kkalog

Untitled

Jul 20th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. tuple1 = (1,2,3,4,5,6,7,8,9,10)
  2. list1 = []
  3.  
  4. for i in tuple1:
  5.   if i%2 != 0:
  6.     list1.append(i)
  7.  
  8.  
  9. tuple2 = tuple(list1)
  10. print tuple2
Advertisement
Add Comment
Please, Sign In to add comment