Course Content

  • Tuple

Course Content


Multiple items can be stored in a single variable using tuples. Tuple is one of four built-in Python data types for storing collections of data; the other three are List, Set, and Dictionary, all of which have different properties and applications. A tuple is an ordered and unchanging collection.

  • Determine whether or not your data should be modified.
  • Tuples are more efficient than lists. If we're going to define a constant set of values that we'll only ever cycle through, we should use Tuple instead of List.
  • Tuples can be used to create an array of elements that can be used as dictionary keys.

Tuple is kept in a single memory block. A tuple is quicker to create than a list. Because two memory blocks must be accessed, creating a list takes longer. A tuple element cannot be removed or replaced.

Tuples are faster than lists since their values are constant. Because they hold immutable values like texts, numbers, and so on, tuples can be used as dictionary keys.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere