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
На этой странице сайта вы можете посмотреть видео онлайн Tuples and Sets | Intro to Coding | Learn to Code Python! длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь JakeEh 16 Июнь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 60 раз и оно понравилось 7 зрителям. Приятного просмотра!