Tuples & Sets
Immutable tuples and duplicate-free sets — when to use which.
Simple enough for a 5-year-old to understand
Tuple: an immutable list
A tuple is like a list but CANNOT BE CHANGED after it's created. It's written with parentheses.
nokta = (3, 5)print(nokta[0])print(nokta[1])🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)