kkalog

Untitled

Jul 20th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. tuple1 = (1,2,3,4,5,6,7,8,9,10)
  2.  
  3.  
  4. def print_tuple_elements():
  5.   list1 = list(tuple1)
  6.   print list1[0:5]
  7.   print list1[5:10]
  8.  
  9. print_tuple_elements()
Advertisement
Add Comment
Please, Sign In to add comment