#!/usr/bin/env python3 import mysql.connector weblist = ["ericafox", "ericascott", "ericastevens", "samarafox", "samarastevens", "williamscott", "woodytheduck"] mydb = mysql.connector.connect( host="localhost", user="superuser", passwd="superuserpassword" ) mycursor = mydb.cursor() for site in weblist: mycursor.execute("CREATE DATABASE " + site)