...
In contrast to Python, Java supports only object-oriented programming, while Python supports many (but not all) aspects of object-oriented programming; but it is possible to write a Python program without making any use of OO concepts.
An Example of Inheritance
Here is the sample code for a possible implementation of a Animal class , both in Java and Python.
...