----------------------------------------------------------1--------------------------------------------------------------------------
import mysql.connector
mydb=mysql.connector.connect(host="localhost",
user="root",password="harish")
#CREATING DATABASE AND TABLE
mycursor=mydb.cursor()
mycursor.execute("create databse if not exists BATSTORE")
mycursor.execute("use BATSTORE")
mycursor.execute("create table if not exists)
signup(username varchar(20),password varchar(20))")
while True:
print("""1:signup
2.login""")
--------------------------------------------------------------2----------------------------------------------------------------------
2:Delete BATS
3:Search BATS
4:Staff NAME
5:Sell BATS
6:Available BATS
7:Total Income after the latest Reset
8:Exit”””)
a=int(input(“Enter your choice:”))
#ADD BATS
If a==1:
Print(“All information prompted are mandotary to be filled”)
BAT=str(input(“Enter Name:”)
TYPE=str(input(“TYPE:”)
Quantity=int(input(“Enter quantity:”))
COLOUR=str(input(“Enter colour name:”))