wiley_pastebin

1.3.2 Tuples

Nov 13th, 2019
829
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. > myTuple = (“apple”, “orange”, “pear”)
  2.  
  3. In the same way we access lists we can access tuples,
  4.  
  5. > print(myTuple[1])
  6.  
  7. > “orange”
Advertisement
Add Comment
Please, Sign In to add comment