Learn Python • #8 Tuples and Sets • More Ways To Store Data!

Поделиться
HTML-код
  • Опубликовано: 25 июн 2024
  • Tuples and Sets are two important data structures in Python that you'll definitely want to know about.
    Tuples are immutable sequences of elements, typically used for grouping related data.
    Sets, on the other hand, are mutable collections of unique elements. With Sets, it's easy to check if an item is inside that collection. It's also easy to do mathematical operations like "intersection" (finding common elements between two sets) and "union" (finding all elements of two combined sets).
    This video is part of a beginner tutorial series for anyone who wants to learn Python from scratch, and get to a point where you can start coding your own projects.
    🔗 Project Code (GitHub): github.com/pixegami/python-fo...
    🔗 Full Playlist: • Python For Beginners (...
    🔗 Next Chapter: Coming Tomorrow!
    👉 Follow me on Twitter: @pixegami
    📚 Chapters
    00:00 - Tuples vs Lists
    01:58 - Tuple Syntax in Python
    03:36 - Hands-on Coding with Tuples
    05:45 - Using Tuples as a Dict Key
    08:02 - Sets in Python
    14:28 - Coding Exercise: Tuples and Sets

Комментарии • 2