In this video we go over Tuples and Sets.
Tuples are like an immutable version of a list. Order is maintained for them, but you can't add anything to them. They are great to use when you want to set it and be sure it hasn't changed throughout your program - these types of variables are typically called *constants*.
Sets are another data structure that are unlike lists or tuples. They are immutable and unordered. While they are immutable, it just means that you can't update a specific value or reference a specific value, you can only remove/add/search if it's there. They are great for tracking unique values such as checkpoints in a game, or guesses in Hangman.
Tuples: https://www.w3schools.com/python/pyth...
Sets: https://www.w3schools.com/python/pyth...
Thanks for watching! ❤️
Timestamps:
00:00 Intro
00:20 Tuples
06:05 Sets
14:24 When to use Tuples & Sets
14:56 Outro
#coding #python #sets #tuples
On this page of the site you can watch the video online Tuples and Sets | Intro to Coding | Learn to Code Python! with a duration of hours minute second in good quality, which was uploaded by the user JakeEh 16 June 2022, share the link with friends and acquaintances, this video has already been watched 60 times on youtube and it was liked by 7 viewers. Enjoy your viewing!