Explain list vs tuple in Python
Company: PayPal
Role: Data Scientist
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Technical Screen
## Question
In Python:
1. What are the key differences between a **list** and a **tuple**?
2. When would you prefer using a tuple over a list?
3. What are the performance and safety implications (mutability, hashing, memory, iteration) that matter in production code?
Quick Answer: This question evaluates understanding of Python sequence types, specifically differences in mutability, hashing ability, memory footprint, and iteration and performance characteristics.