And we are not talking about snake variants, we are talking about variable types. Variables are just spaces in the memory which we give assign its value and most of the times we can change the value.
In Python3 there are 5 basic types of variables, which are: number, string, list, tuple, and dictionary.
Number: this is almost self explanatory, you can only store numbers in this kind of variable.
String: this variable stores multiple characters in order, like words.
List: this variable let’s you store multiple variables that can be of different data type. So in theory you can create lists of lists.
Tuple: this is like a list but with two key differences. The first one is that lists are enclosed in brackets “” and tuples are enclosed in parentheses “()”. The second and most important is that lists can be updated and tuples can’t. This means that after you store values in a tuple, you cannot change those values, only watch them.
Dictionary: this variable is unique. In a dictionary you can store a lot of values but every value needs like a key word for the program to identify. It is like a real life dictionary book, where there are a lot of words and each one of them stores more information.
If you didn’t like my explanation on the topic or you would like another way of seeing this, you can simply check one of these two links: