0% found this document useful (0 votes)
10 views

Code

Uploaded by

Aryan Anish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Code

Uploaded by

Aryan Anish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

----------------------------------------------------------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:”))

You might also like