Tuples are technically just immutable lists, but by convention we tend to use tuples and lists for quite different purposes.
Article at https://pym.dev/how-to-make-a-tuple/
More #Python screencasts at https://pym.dev/screencasts/
00:00 Making tuples in Python
00:15 Tuples are like lists, but immutable
00:39 Tuples are all over the place
01:03 The parentheses are optional: it's the commas that make the tuple
01:37 When should you make a tuple?
02:56 Returning multiple values from a function
03:27 Summary
On this page of the site you can watch the video online How to make a tuple in Python with a duration of hours minute second in good quality, which was uploaded by the user Python Morsels 02 August 2024, share the link with friends and acquaintances, this video has already been watched 264 times on youtube and it was liked by 15 viewers. Enjoy your viewing!