coderz.py

Keep Coding Keep Cheering!

Python Tuple

What is Python Tuple? A Python Tuple is a group of items that are separated by commas. The indexing, nested objects, and repetition of a tuple are somewhat similar to those of a list, but unlike a list, a tuple is immutable. Example: Output: Empty Tuple: Output: Indexing in Tuples: The index operator [] can […]

December 1, 2022 | python | No comments

Advertisement