The Ticket Booking System In Python is a Python program that can book tickets in digital way. This Ticket Booking System Project was only developed using Python Programming language.

Ticket Reservation System Python is a simple console application, the user can access the system freely by just entering a certain keys. The user can add customer name, view PNR status, and generate the total booked ticket. The system contains all the basic functionality in order to be fully operated and provide the customer needs.

This Ticket Booking System In Python also includes a downloadable source code project for free, just find the downloadable source code below and click to start downloading.

Watch here the complete running Booking System In Python with Source Code.

https://youtu.be/jJ9knYsuE-8

Ticket Booking System In Python With Source Code

  • Step 1: Create a project name. First open any  IDE like PyCharm or IDLe and then create a “project name” after creating a project name click the “create” button.
  • Step 2: The actual code. You are free to copy the code given below and download the full source code below .
print(' WELCOME TO   DIGITECHBITS  TICKET BOOKING SYSTEM')

lst=list()
for i in range(1,51):
    lst.append(i)
fname=list()
for j in range(1,51):
    fname.append(j)
lname=list()
for k in range(1,51):
    lname.append(k)
agep=list()
for i in range(1,51):
    agep.append(i)
r=1
while r !=0:
    
    print("1.Book ticket ")
    print("2.Check Tickt Status ")
    print('3.Cancel ticket\n')
    print("4.Check detail of booked ticket ")
    print('5.Exit ')
    
    choice = int(input("\nEnter your option : "))




    
    if choice==1:
        tic=int(input('Enter seat no '))       
        if lst[tic-1]==tic:
            fname1=str(input('Enter your  first name \n'))
            lname1=str(input('Enter your last name \n'))
            age1=int(input('Enter your age \n'))
            lst.pop(tic-1)
            fname.pop(tic-1)
            lname.pop(tic-1)
            agep.pop(tic-1)
            lst.insert(tic-1,'B')
            fname.insert(tic-1,fname1)
            lname.insert(tic-1,lname1)
            agep.insert(tic-1,age1)
            print('\n*************************')
            print("your Ticket is booked")
            print('*************************\n')
        else:
            print('\n*************************')
            print('seat is already booked try other seat')
            print('*************************\n')





            
    elif choice==2:
       for k in lst:
           print(k,end=" ")





           
    elif choice==3:
        tic=int(input('Enter seat no '))
        if lst[tic-1]==tic:
            print('\n*************************')
            print("This seat is not Booked")
            print('*************************\n')
        else:
            lst.pop(tic-1)
            lst.insert(tic-1,tic)
            print('\n*************************')
            print('your ticket is canceled')
            print('*************************\n')






            
    elif choice==4:
        s=int(input('Enter seat no \n'))
        s=s-1
        if fname[s]==s+1:
            print('\n*************************')
            print('this seat is not booked')
            print('*************************\n')
        else:
            print('\n*************************')
            print('Customer Name is :',fname[s].title(),'',lname[s].title(),'and Age is : ',agep[s] )
            print('*************************\n')




        
    elif choice==5:
        r=0
        exit()


        
    else:
        print('\n*************************')
        print('you are enter wrong key\n')
        print('*************************\n')
    

Downloadable Source Code

Leave a Reply

Your email address will not be published.