0% found this document useful (0 votes)
3 views1 page

Ticket Booking System Overview

The document outlines a simple ticket booking system where users can check their PNR status or reserve tickets. Users can input the number of tickets they want, along with passenger details such as name, age, and sex. The program allows for the option to add more passengers before finalizing the ticket details.

Uploaded by

jay jai
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)
3 views1 page

Ticket Booking System Overview

The document outlines a simple ticket booking system where users can check their PNR status or reserve tickets. Users can input the number of tickets they want, along with passenger details such as name, age, and sex. The program allows for the option to add more passengers before finalizing the ticket details.

Uploaded by

jay jai
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

print("\n\nWelcome!

 To Ticket Booking System\n")
restart = ('Y')

while restart != ('N','NO','n','no'):
    print("[Link] pnr status")
    print("[Link] Reservation")
    option = int(input("\nEnter your option : "))

    if option == 1:
        print("Your pnr status is t2")
        exit(0)

    elif option == 2:
        people = int(input("\nEnter no. of Ticket you want : "))
        name_l = []
        age_l = []
        sex_l = []
        for p in range(people):
            name = str(input("\nName : "))
            name_l.append(name)
            age  = int(input("\nAge  : "))
            age_l.append(age)
            sex  = str(input("\nMale or Female : "))
            sex_l.append(sex)

        restart = str(input("\nOops! Forget someone : "))
        if restart in ('y','YES','yes','Yes'):
            restart = ('Y')
        else :
            x = 0
            print("\nTotal Ticket : ",people)
            for p in range(1,people+1):
                print("Ticket : ",p)
                print("Name : ", name_l[x])
                print("Age  : ", age_l[x])
                print("Sex : ",sex_l[x])
                x += 1

    

You might also like