PGoCareerGoCareer prep tools
Home
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

Python · Theory

List vs Tuple in Python

← All stacks

Theory

34/268

List vs Tuple in Python

Both are ordered sequences. The big difference is mutability. List can change: append, pop, names[0] = "Asha". Tuple cannot. [] vs (). Tuple can be a dict key if its items are hashable; a list cannot. Pick list when you will edit. Pick tuple when the data should stay fixed — coordinates, RGB, a row you don’t want anyone to append to.

Lead the viva with mutable vs immutable, then one use each. Don’t start with “tuple is faster” unless they ask — intent matters more for freshers.

List vs Tuple in Python — output — [1, 2, 3] then (1, 2). List grew; tuple stayed.

Diagram
point = (3, 4)   immutable
     x=3     y=4
Exam tip

Mutability first; then dict-key use case.

Example

# List vs tuple
a = [1, 2]
a.append(3)
b = (1, 2)
print(a)
print(b)

List vs Tuple in Python — output: [1, 2, 3] then (1, 2). List grew; tuple stayed.

Short notes

  • DefList mutable. Tuple immutable.
  • Rule[] vs ()
  • RememberTuple can be dict key

Questions

1

Explain List vs Tuple as if you are teaching a junior — definition, then one tiny script.

2

What does the example print, and why?

3

What mistake do freshers make with List vs Tuple?

Previous← Python Tuple MethodsNextPython Sets →
P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.