InterviewSolution
| 1. |
What are lists and tuples? What is the key difference between the two? |
|
Answer» Lists and Tuples are both sequence data types that can store a collection of objects in Python. The objects stored in both sequences can have DIFFERENT data types. Lists are represented with square brackets ['sara', 6, 0.19], while tuples are represented with parantheses ('ansh', 5, 0.97). |
|