Ticket Booking System In Python With Source Code

Ticket Booking System In Python With Source Code

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.

A 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.

To start creating a Ticket Booking System In Python, make sure that you have a PyCharm IDE installed in your computer.

By the way if you are new to python programming and you don’t know what would be the the Python IDE to use, I have here a list of Best Python IDE for Windows, Linux, Mac OS that will suit for you. I also have here How to Download and Install Latest Version of Python on Windows.

Steps on how to create a Ticket Booking System In Python

Ticket Booking System In Python With Source Code

  • Step 1: Create a project name.

    First open Pycharm IDE and then create a “project name” after creating a project name click the “create” button.
    Ticket Booking System In Python Project Name

  • Step 2: Create a python file.

    Second after creating a project name, “right click” your project name and then click “new” after that click the “python file“.
    Ticket Booking System In Python File

  • Step 3: Name your python file.

    Third after creating a python file, Name your python file after that click “enter“.
    Ticket Booking System In Python File Name

  • Step 4: The actual code.

    You are free to copy the code given below and download the full source code below.

Complete Source Code

print("\n\nTicket Booking System\n")
restart = ('Y')

while restart != ('N','NO','n','no'):
	print("1.Check PNR status")
	print("2.Ticket Reservation")
	option = int(input("\nEnter your option : "))

	if option == 1:
		print("Your PNR status is t3")

	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 : "))
			age  = int(input("\nAge  : "))
			sex  = str(input("\nMale or Female : "))

		restart = str(input("\nDid you forgot someone? y/n: "))
		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


The code given is the complete source code of Ticket Booking System In Python.

Ticket Booking System In Python : Project Information

Project Name:Ticket Booking System In Python
Language/s Used:Python (GUI) Based
Python version (Recommended):2.x or 3.x
Type:Python App
Ticket Booking System In Python – Project Information

Downloadable Source Code

I have here the list of Best Python Project with Source code free to download for free, I hope this can help you a lot.


The Ticket Booking System In Python is written in Python programming language, Python is very smooth to research the syntax emphasizes readability and it is able to reduces time ingesting in developing.

Also in this tutorial is the simplest way for the beginners or the student to enhance their logical skills in programming. and also in this System project is the way for the students or beginners in designing and developing the system’s.

Related Articles


If you have any questions or suggestions about Ticket Booking System In Python , please feel free to leave a comment below.

Leave a Comment