Tuples

Tuples are used just like the lists except for lists, there are a lot of functions associated with it. In simpler words, lists are changeable/mutable where as tuples are not. We can not add new element into a tuple or can not remove an element in a tuple. When there can not be anything possible with tuples, why is it used extensively in Python?

Tuples are used a lot in object oriented programming(OOP) which is a high level programming lesson and we will go over it in a while.

Now, how do we create a tuple? We wrap the parenthesis around the elements and separate them with commas. Do not mix up tuples and functions. Both are entirely different. Tuple is a just a list of elements where as function is a useful code.

Here is an example of a tuple:

information = ('Bob:MasterPython.me','Mary:Advertising specialist')