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 a 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 certain keys. The user can add a 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’s 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 on your computer.

By the way, if you are new to Python programming and don’t know what Python IDE to use, I have here a list of the Best Python IDE for Windows, Linux, and Mac OS that will suit you. I also have here How to Download and Install the 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")
		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("\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
Database:None
Type:Python App
Developer:IT SOURCECODE
Updates:0
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.

Summary

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

Also, this tutorial is the simplest way for beginners or students to enhance their logical skills in programming. Aside from that, this System project is a way for students or beginners to design and develop the systems.

Related Articles

Inquiries

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

Leave a Comment