How to create and query the Python PostgreSQL database

How to create and query the Python PostgreSQL database