Learn Python Easy Way

Thursday, August 13, 2015

tuples and list

A tuple is a sequence of immutable Python objects. Tuples are sequences, just like lists. The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples use parentheses, whereas lists use square brackets.


immutable Python objects: once created their value never changes.
Posted by Gopal Singh at 1:27 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2017 (13)
    • ►  September (4)
    • ►  August (6)
    • ►  July (3)
  • ►  2016 (62)
    • ►  August (1)
    • ►  June (8)
    • ►  May (11)
    • ►  April (18)
    • ►  March (17)
    • ►  February (5)
    • ►  January (2)
  • ▼  2015 (77)
    • ►  December (8)
    • ►  November (19)
    • ►  October (28)
    • ►  September (2)
    • ▼  August (17)
      • Unusual return of "and" and "or" in Python
      • expand list to function arguments
      • i18n in python
      • git command with [ ]: git -c i18n.logoutputencodin...
      • % in python
      • tuples and list
      • python tuples
      • What is class
      • {} in python class
      • __str__ and __repr__ in python
      • pass statement in python
      • class and object in python
      • argv in python
      • default value of argument in python when no argume...
      • Function in python
      • variable length argument in Python: **kw
      • if __name__ == "__main__" : Usage
    • ►  July (3)
  • ►  2013 (1)
    • ►  October (1)
Simple theme. Powered by Blogger.