Why use a tuple?
Answer: When u need an immutable data structure, and when the order of elements is important (like coordinates)
Learn More :
Python
- What are advantages & disadvantages of pure functions?
- What is a pure function?
- What is memoization?
- What are higher order functions?
- What are the two primary aspects of functional programming?
- Why should one avoid using generic 'except' statements that catch all errors?
- Why use 'with' when working with files?
- What does file.write() return?
- What is returned by functions that don't explicitly return anything?
- Why use an empty tuple?