Is a list a variable?
Question: I am new to python and i was just reading up about lists. I have been trying
to find out if a list is a variable

    
    
    e.g. Hello = [] 
    

This is because I read that you assign a variable by using the '=' sign. Or,
am I just assigning the empty list a name in the example above.


Answer: In Python, the concept of object is quite important (as other users might have
pointed out already, I am being slow!).

You can think of `list` as a list (or actually, an Object) of elements. As a
matter of fact, list is a `Variable`-sized `object` that represents a
collection of items. Python lists are a bit special because you can have mixed
types of elements in a `list` (e.g. strings with int)But at the same time, you
can also argue,"What about set, map, tuple, etc.?". As an example,

    
    
    >>> p = [1,2,3,'four']
    >>> p
    [1, 2, 3, 'four']
    >>> isinstance(p[1], int)
    True
    >>> isinstance(p[3], str)
    True
    >>> 
    

In a `set`, you can vary the size of the set - yes. In that respect, set is a
variable that contains unique items - if that satisfies you....

In this way, a `map` is also a "Variable" sized key-value pair where every
unique key has a value mapped to it. Same goes true for `dictionary`.

If you are curious because of the `=` sign - you have already used a keyword
in your question; "Assignment". In all the high level languages (well most of
them anyway), `=` is the assignment operator where you have a variable name on
lhs and a valid value (either a variable of identical type/supertype, or a
valid value).

