What is class upto in python? : In the below [class dictionary](https://www.youtube.com/watch?v=HTLu2DFOdTg),

    $ python3.5
    Python 3.5.2 (default, Nov 17 2016, 17:05:23) 
    [GCC 5.4.0 20160609] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> class X(object):
    ...     print('xyz')
    ... 
    xyz
    >>> class Y(object):
    ...     for item in range(4):
    ...             print(item)
    ... 
    0
    1
    2
    3
    >>> 

`class X` & `class Y`, allows for-loop and python statements.

**Question:**

How to understand a class in python?

