• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Python | Variables: Tuples
  1. Tuples

  1. Tuples
    A Tuple is an immutable collection of ordered items.
    Items in the tuple can be of any type: strings, numbers, dictionaries, lists, objects, ...

    Use parentheses (()) to create a tuple.
    Use commas to separate items in the tuple.
    If you try to modify a tuple you get an error:
© 2025  mtitek