CATEGORY

Python

10+ examples on python sort() and sorted() function

We can use sort() or sorted() in-built function to perform python sorting for different data types such as list, tuples, dictionaries, list of dictionaries with …

By admin · 9 min read · Python

15+ simple examples to learn Python list in detail

A list is a data structure in Python that is a mutable, ordered sequence of elements. lists are defined by having different data types between square brackets [ …

By admin · 12 min read · Python

10+ simple examples to learn python tuple in detail

Python tuples are collection of comma-separated values. It is identical to a list, except it is immutable. Tuples are useful for storing information that you …

By admin · 9 min read · Python

10+ simple examples to learn python sets in detail

Python sets are collections of unique and unordered items. It implements all the fundamental operations from set theory, like union, intersection, subset tests …

By admin · 9 min read · Python