<filename>create_db.py
import psycopg2

conn = psycopg2.connect(user='postgres', host='localhost', password='<PASSWORD>')
cur = conn.cursor()
cur.execute("""CREATE DATABASE mafast1;""")
cur.execute("""CREATE DATABASE tfast;""")
conn.commit()
conn.close()
cur.close()
print("Congrats!! Danns database created")

<filename>create_db.py
import psycopg2

conn = psycopg2.connect(user='postgres', host='localhost', password='<PASSWORD>')
cur = conn.cursor()
cur.execute("""CREATE DATABASE mafast1;""")
cur.execute("""CREATE DATABASE tfast;""")
conn.commit()
conn.close()
cur.close()
print("Congrats!! Danns database created")

CREATE DATABASE mafast1; CREATE DATABASE tfast;