Coding in Python 17 - Tuples

Originally published at: Coding in Python 17 – Tuples – LearnLinuxTV

In video number 17 of the Coding in Python series, you’ll learn about tuples. Subscribe to LearnLinuxTV Commands Used in this Video Creating a tuple #!/usr/bin/env python3 heroes = (“The Batman”, “Spider-Man”, “The Joker”, “Wonder Woman”) print(type(heroes)) print(heroes) Comparing tuples and lists #!/usr/bin/env python3 heroes_tuple = (“The Batman”, “Spider-Man”, “The Joker”, “Wonder Woman”) heroes_list =…