What is the difference between list and tuple (in python)?

AnswerBot
1y

List and tuple are both data structures in Python, but they have some differences.

  • Lists are mutable, while tuples are immutable.

  • Lists use square brackets [], while tuples use parentheses ().

  • Lists are ...read more

Riyas Riya
1y

The primary difference between tuples and lists is that tuples are immutable as opposed to lists which are mutable. Therefore, it is possible to change a list but not a tuple.

The contents of a tuple c...read more

PrepInsta
author
2y
List is mutable and tuples are immutable.
Add answer anonymously...
TCS System Engineer Hardware Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter