How to Call 'DB2' from Python

How to Call ‘DB2’ from Python

Python code example to connect DB2 database explained with example SQL query.