Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views

code

Uploaded by

aruljoshua2007
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)
2 views

code

Uploaded by

aruljoshua2007
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/ 5

mport os

import platform
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",p
assword="ro
ot",database='parking')
mycursor=mydb.cursor()
defAdd_Record():
L=[]
id1=int(input("Enter the parking number : "))
L.append(id1)
pname1=input("Enter the Parking Name: ")
L.append(pname1)
level1=input("Enter level of parking : ")
L.append(level1)
freespace1=input("Is there any freespace or not :YES/NO ")
L.append(freespace1)
vehicleno1=input("Enter the Vehicle Number : ")
L.append(vehicleno1)
nod1=int(input("Enter total number of days for parking: "))
L.append(nod1)
if nod1==1:
input_dt = int(input("Please Select An Above Option: "))
if(input_dt== 1):
Add_Record()
elif (input_dt==2):
Rec_View()
elif (input_dt==3):
Vehicle_Detail()
elif (input_dt==4):
remove()
elif (input_dt==5):
Vehicle_View()
else:
print("Enter correct choice....")
Menu()
defrunAgain():
runAgn=input('\nwant to run Again Y/n:')
while(runAgn.lower()=='y'):
if(platform.system()=='Windows'):
print(os.system('cls'))
else:
print(os.system('clear'))
Menu()
runAgn=input('\nwant to run Again Y/n:') runAgain()

You might also like