Python Forum
About List & Tuples - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: About List & Tuples (/thread-35211.html)



About List & Tuples - MilesWeb - Oct-09-2021

We know that Lists are mutable i.e they can be edited. Also Tuples are immutable i.e. tuples can’t be edited.

How would you differentiate between two??


RE: About List & Tuples - ndc85430 - Oct-09-2021

What is your question, really? You've just identified how the two are different, so I'm not sure what you're asking.


RE: About List & Tuples - MilesWeb - Oct-09-2021

Do you have any references for creating Python program to create a tuple


RE: About List & Tuples - ndc85430 - Oct-09-2021

The Python tutorial, or any good book, etc. should show you how to create tuples. I mean, have you not been able to find any material?!


RE: About List & Tuples - perfringo - Oct-09-2021

Usually documentation is good starting point : Tuples and Sequences