You are on page 1of 8

S.

NO CONTENTS

1. OVERVIEW OF PYTHON AND MYSQL

2. ABSTRACT

3. SOURCE CODE

4. SAMPLE OUTPUT

5. CONCLUSION

6. BIBLIOGRAPHY

OVER VIEW OF PYTHON AND MYSQL


1
Python is an interpreter, high-level and general-purpose programming language. Python's
design philosophy emphasizes code readability with its notable use of significant indentation.
Python and its broad variety of libraries are very well suited to develop customized machine
learning tools which tackle the complex challenges posed by financial time series. Python is a
general-purpose coding language—which means that, unlike HTML, CSS, and JavaScript, it
can be used for other types of programming and software development besides web
development. That includes back end development, software development, data science and
writing system scripts among other things.

MYSQL is an open-source relational


database management system. Its name is a combination of “My”, the name of co-founders
Michael Widenius's daughter, and "SQL", the abbreviation for Structured Query Language.
Many of the world's largest and
fastest-growing organizations
including Facebook, Google,
Adobe, Alcatel Lucent and Zappos
rely on MySQL to save time and
money powering their high-volume
Web sites, business-critical systems
and packaged software.

2
ABSTRACT

This is python version of the most popular mobile and computer Online Ticket
Booking System .The main objective of this python project is to book Online movie
ticket system is the process by which customer can purchase their movie tickets directly
using internet and pay through online banking. Online movie ticket booking system is
measurable, cost effective and has very good user interface .This web based Asp.Net C#
project provides the all working of the cinema ticket booking system. Online movie
ticket booking system is useful for both promoters and customers equally. Customers
can make online ticket booking at any instance of 24 hours a day. And therefore they
can buy ticket from anywhere around the world. Customers with cinema website to
know about new movies, show timings and cinema locations . Customer can buy tickets
without wasting their time. Cinema owner can inform to customers about new release
and discounts and also can get feedback from customer. This feedback will be helpful
for him to make new strategy for business. This is representation of the booking system
in which appears as an leading softwares like in theatres.

3
SOURCE CODE

import mysql.connector as sql

conn=sql.connect(host = 'localhost',user='root',passwd='manager',database='soft')

c1=conn.cursor()

if conn.is_connected():

print ("Enter your choice as 1,2,3&4")

print ("$$$$$$$$$$$$ PALLVAN THEATRE BOOKING (AC & NON AC) $$$$$$
$$$$$$$$")

print ("SIGN UP")

print ("LOG IN")

print ("PALLAVAN THEATRE")

con = input ("do you want to continue or not :")

ch=int(input("Enter your choice :"))

if ch==1:

v_mname = input("Enter the movie name :")

v_phno = input("Enter phone number :")

v_tic = input("Enter total tickets :" )

v_sex = input ("Enter your sex :" )

v_fname = input ("Enter your first name :")

v_lname = input ("Enter your last name :")

v_passwd = input ("Enter your passwd :")

v_userID = input ("Enter your userID :")

v_snacks = input ("Order your snacks :")

4
v_ins="insert into theatre
values( '{}','{}','{}','{}','{}','{}','{}','{}','{}')".format(v_mname,v_phno,v_tic,v_sex,v_fn
ame,v_lname,v_passwd,v_userID,v_snacks)

c1.execute(v_ins)

conn.commit()

print (" ticket booked congrats")

print ("Thank you for visiting pallavan theatre")

print ("ratings")

ch=int(input("Enter your choice :"))

if ch ==2:

print ("##############WELCOME TO THE BOX OFFICE


(AC)##################")

c = input ("Enter your movie name :")

a = input ("Enter your name :")

d = input ("Enter total tickets :")

b = input ("Enter your ph_no :")

pswd= input("Enter the password :")

sks = input(" Order your snacks :")

print ("*********************TICKET BOOKED***********************")

ch=int(input("Enter your choice :"))

if ch ==3:

print ("************welcome to 1st class ticket booking **************")

c = input ("Enter your movie name :")

a = input ("Enter your name :")

5
d = input ("Enter total tickets :")

b = input ("Enter your ph_no :")

pswd= input("Enter the password :")

sks = input(" Order your snacks :")

print ("**TICKET BOOKED**")

ch=int(input("Enter your choice :"))

if ch == 4:

print ("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WELCOME TO 2nd CLASS TICKET


BOOKING !!!!!!!!!!!!!!!!!!!!!!!!!!!!")

a = input ("Enter your name :")

b = input ("Enter your movie name :")

c = input ("Enter your ph_no :")

d = input ("Enter total tickets :")

pswd= input("Enter the password :")

sks = input(" Order your snacks :")

print ("///////////////ENJOY THE MOVIE AND HAVE FUN/////////////////")

6
OUTPUT

# adding details:

7
BIBLIOGRAPHY

Website Reference:

https://www.w3resource.com

https://projectworlds.in/tag/movie-ticket-booking-python-project-class-12/

https://thedarshika.com/ip-projects-class-12-pdf-free-download/

You might also like