Professional Documents
Culture Documents
N
SCHOOL
Session:-2023-2024
Samit Singh
CERTIFICATE
odula-3 Python
Version List
Python Features
Python provides many useful features which make it popular and valuable
from the other programming languages. It supports object-oriented
programming, procedural programming approaches and provides dynamic
memory allocation. We have listed below a few essential features.
• Expressive Language
Python can perform complex tasks using a few lines of code. A simple
example, the hello world program you simply type print("Hello World"). It
will take only one line to execute, while Java or C takes multiple lines.
• Interpreted Language
• Cross-platform Language
• Object-Oriented Language
• Extensible
It implies that other languages such as C/C++ can be used to compile the code
and thus it can be used further in our Python code. It converts the program
into byte code, and any platform can use that byte code.
• Large Standard Library
It provides a vast range of libraries for the various fields such as machine
learning, web developer, and also for the scripting. There are various machine
learning libraries, such as Tensor flow, Pandas, Numpy, Keras, and Pytorch,
etc. Django, flask, pyramids are the popular framework for Python web
development.
• Integrated
It can be easily integrated with languages like C, C++, and JAVA, etc. Python
runs code line by line like C,C++ Java. It makes easy to debug the code.
• Embeddable
The code of the other programming language can use in the Python source
code. We can use Python source code in another programming language as
well. It can embed other language into our code.
Introduction
MySQL, an open-source relational database management system, has a
rich and influential history in the realm of database technology. From its
inception in the mid-1990s to its current status as a leading database
solution, MySQL has played a crucial role in the development of dynamic
and scalable applications.
In May 1995, MySQL 1.0 was released, marking the beginning of its
journey as an open-source database solution.
2. Project Overview
The Parking Management System comprises a command-line interface
(CLI) application where users can perform various tasks related to
parking management. The system stores data in a MySQL database,
ensuring data integrity and persistence.
3. Implementation Details
3.1 Environment Setup
To run the Parking Management System, users need to set up a local
environment with MySQL and Python installed. Instructions for
environment setup are provided in the documentation.
3.3.5 Feedback
Users can submit feedback by entering text. The system acknowledges
the submission.
3.3.6 About Us
Displays information about the project and its creators, including the
purpose of the Parking Management System and contact details.
4. Code Structure
The Python code utilizes the mysql.connector library for MySQL database
connectivity and the pandas library for data presentation. The code is
organized into functions corresponding to each parking management
task.
5. Future Enhancements
The Parking Management System can be expanded in the future to
include additional features such as user authentication, graphical user
interface (GUI) implementation, and integration with external APIs for
enhanced functionalities.
6. Conclusion
The Parking Management System showcases the seamless integration of
MySQL and Python, providing a practical solution for managing parking-
related data. The project demonstrates fundamental concepts in
database management, SQL operations, and Python programming.
7. References
MySQL Documentation: https://dev.mysql.com/doc/
Python Documentation: https://docs.python.org/
Pandas Documentation: https://pandas.pydata.org/pandas-docs/stable/
CODE
import mysql.connector as con
import pandas as pd
if c.is_connected():
cur = c.cursor()
while True:
print(' WELCOME TO MYPARKING')
print(' Enter your Choices:')
print('Press 1 for Adding Vehicle info')
print('Press 2 for Modifying Vehicle info')
print('Press 3 for Removing Existing Vehicle')
print('Press 4 for Customers List')
print('Press 5 for Feedback')
print('Press 6 to know About Us ')
print('Press 7 for Log Out')
ch = eval(input("Enter Your Choice:"))
if ch == 1:
print("ENTER VEHICLE INFORMATION TO ADD")
VN = input("Enter Your Vehicle No.:")
ON = input("Enter the Owner's Name:")
MN = input("Enter Contact:")
PY = input("Enter the Payment:")
AO = input("Enter Added on:")
EO = input("Enter Exited on:")
elif ch == 2:
n = input("Enter the Vehicle No. you want to
modify:")
Qry = "SELECT * FROM MyParking WHERE V_No=%s"
cur.execute(Qry, (n,))
rec = cur.fetchone()
print(rec)
try:
cur.execute(Qry, values)
c.commit()
print("Record Updated!")
except con.Error as e:
print("Updation Failed! Error:", e)
elif ch == 3:
i = input("Enter the Vehicle No. you want to
Delete:")
Qry = "DELETE FROM MyParking WHERE V_NO=%s"
try:
cur.execute(Qry, (i,))
c.commit()
if cur.rowcount > 0:
print("Record Deleted!")
else:
print("Deletion Failed!")
except con.Error as e:
print("Deletion Failed! Error:", e)
elif ch == 4:
Qry = "SELECT * FROM MyParking"
cur.execute(Qry)
if cur.rowcount > 0:
data = cur.fetchall()
df = pd.DataFrame(data, columns=["V_No",
"Owner's Name", "Contact", "Payment", "Added_On",
"Exited_On"])
print(df)
print()
else:
print("Records are Empty!!")
elif ch == 5:
print('Please Share Your Feedback:')
n = input()
print('Your Feedback has been Submitted!!')
elif ch == 6:
print(' ABOUT US')
print('Parking is the act of stopping and
disengaging a vehicle and leaving it unoccupied. Parking
on one or both sides of a road is often permitted, though
sometimes with restrictions. To solve this problem, we
have created this Parking Management System.')
print('As we have worked a lot to make this
parking system, generally known as MyParking, it is owned
by our company director Mr. Yash Jaiswal and managed by
Mr. Ritesh Mishra.')
print('To know more about us, you can contact
us at email: myparking64@gmail.com.')
print('We hope that we have not disappointed
you.')
print('
-The Director')
elif ch == 7:
break # Exit the loop when the user chooses
to log out
else:
print("Enter a valid choice!!")
else:
print("CONNECTION ERROR!!!")
PROJECT OUTPUT
BIBLIOGRAPHY
In My Opinion I have successfully completed my project
By taking help of my subject teacher, (NCERT) Course Book
And some useful websites
Which Are: -
1. www.wikipedia.com
2. www.youtube.com
3. www.quora.com
4. www.geekforgeeks.com