1. What is a decorator?
A function that wraps another function to extend its behaviour.
2. List vs tuple?
Lists are mutable; tuples are immutable.
Frequently asked Python interview questions with concise answers.
A function that wraps another function to extend its behaviour.
Lists are mutable; tuples are immutable.