Minor - PPT Movie Ticket Using Python
Minor - PPT Movie Ticket Using Python
Minor - PPT Movie Ticket Using Python
ENGINEERING
COLLEGE
ELECTRONICS AND
COMMUNICATION BRANCH
3RD YEAR 6TH SEMESTER
TICKET
MANAGEMENT
SYSTEM
BY-
AASTHA RICHHARIYA
ABHISHEK RAGHUWANSHI
AKSHAT RIKHOLIYA
MANSHI MISHRA
SABURI SAHU
LANGUAGE USED- PYTHON
Python is a popular programming
language. It was created by Guido van
Rossum, and released in 1991. the
extension of python is .py.
The most recent major version of Python
is Python 3,
What can Python do?
3. Logical Operators
Python Conditions and If statements
Python supports the usual logical conditions from mathematics:
Equals: a == b
Not Equals: a != b
Less than: a < b
Less than or equal to: a <= b
Greater than: a > b
Greater than or equal to: a >= b
These conditions can be used in several ways, most commonly in
"if statements" and loops.
If statement syntax:
a = 33
b = 200
if b > a:
print("b is greater than a")
Elif
The elif keyword is Python's way of saying "if the previous conditions were
not true, then try this condition".
Elif statement syntax-
a = 33
b = 33
if b > a:
print("b is greater than a")
elif a == b:
print("a and b are equal")
Else
The else keyword catches anything which isn't caught by the preceding
conditions.
else syntax-
a = 200
b = 33
if b > a:
print("b is greater than a")
elif a == b:
print("a and b are equal")
else:
print("a is greater than b"
Python Loops
Python has two primitive loop commands:
while loops and for loops
While loop
With the while loop we can execute a set of statements as long as a condition is
true.
example-
Print i as long as i is less than 6:
i=1
while i < 6:
print(i)
i += 1
The break Statement
With the break statement we can stop the loop even if the while condition is true.
The continue Statement
With the continue statement we can stop the current iteration, and continue with
the next
For loop
A for loop is used for iterating over a sequence (that is
either a list, a tuple, a dictionary, a set, or a string).This
is less like the for keyword in other programming
languages, and works more like an iterator method as
found in other object-orientated programming
languages.With the for loop we can execute a set of
statements, once for each item in a list, tuple, set etc.
Example-
fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
Python Functions
def my_function():
print("Hello from a function")
To call a function, use the function name followed by
parenthesis:
def my_function():
print("Hello from a function")
my_function()
DBMS
A database management system (DBMS) is system
software for creating and managing databases. A DBMS
makes it possible for end users to create, protect, read,
update and delete data in a database. The most prevalent
type of data management platform, the DBMS essentially
serves as an interface between databases and users or
application programs, ensuring that data is consistently
organized and remains easily accessible.
SOFTWARE USED
Spyder
Mysql
Spyder
Features