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

Python Lists

As we have already seen in Data Types in Python that Python Lists are just like dynamically sized arrays, declared in other languages (vector in C++ and ArrayList in Java). Let us take a look at them in a more detailed way. Characteristics of Lists: The list has the following characteristics: The lists are ordered. The list’s […]

November 25, 2022 | python | No comments

Advertisement