Guest User

Untitled

a guest
Jun 25th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def oddTuples(t):
  2. t2=();
  3. for i in range(0,len(t),2):
  4. t2=t2+(t[i],)
  5. return t2
  6. #return t[::2]
  7. t=tuple(input().split(" "))
  8. t1=oddTuples(t)
  9. print(t1)
Add Comment
Please, Sign In to add comment