Answers

Question and Answer:

  Home  Python

⟩ When do you use list vs. tuple vs. dictionary vs. set?

List and Tuple are both ordered containers. If you want an ordered container of constant elements use tuple as tuples are immutable objects.

 182 views

More Questions for you: