Deepesh started writing about technology when he founded his consumer tech blog in 2018. He joined MakeUseOf in 2021 and wrote primarily for Linux, Programming, Windows, and Gaming. He has a ...
You may have noticed that the built-in types we've used for annotations so far don't include more interesting data structures like Lists or Dictionaries - Those are a more complicated case, since ...
📘 What is a Tuple in Python? A tuple is an ordered, immutable (unchangeable) collection of elements in Python. It is similar to a list, but once created, you cannot modify, add, or remove elements.
In my previous article, I explored sets in Python and how they work under the hood using hash tables. In this article, I’m shifting focus to all four built-in collection data types in Python—lists, ...
# print(tpl , type(tpl)) # passing a string to tuple function returns tuple with each element in the string as individual # element of the tuple , same as in case of list ...