Python Advanced Topics

Related Tags

Tutorials

Python

Python – Lists vs Tuples

Learn the differences between lists and tuples in Python. Tuples are great for creating Value Objects. Lists are for storing a collection of value objects.

Python – Comparing tuples

In Python, tuples are compared lexicographically by comparing corresponding elements of two tuples. Learn to compare heterogeneous and unequal tuples.

Python Unpack Tuple with Variable Length

Python example to unpack tuple or sequence or iterable such that the tuple may be longer than N elements, causing a “too many values to unpack” exception.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.