Computer Soft
Computer Soft
external examiner
acknowledgement
Submitted by:
Gyanwant singh
Introduction
Python and MySQL are a
if(z!=r):
dump(tick,fout)
elif(z==r):
f=1
except:
pass
fin.close()
fout.close()
os.remove(“tickets.dat”)
os.rename(“temp.dat”,”tickets.dat”)
if(f==0):
print
###XXXXXXXXXX
print(“NO SUCH RESERVATION NUMBER FOUND”)
print
time.sleep(2)
os.system(‘cls’)
else:
print
print(“TICKET CANCELLED”)
print
def reservation(self):
trainno=int(input(“ENTER THE TRAIN NO:”))
tr=train()