Snehil Raj
Snehil Raj
#FEATURES OF PYTHON
Easy 01 Etensible (07
Expressive 02 tnbeddable 08
Feattures of
Free ané
Open Source Intergreted 09
Migh-Lavel 04 Large Standard
Library 10
Partable
06
GUI
Programming
Dynamicaltly
Typed
11
(12)
Python
1. EASY TO USE.
2. INTEPRETED LANGUAGE
3. CROSS PLATFORMLANGUAGE
4. EXPRESSIVE LANGUAGE
5. COMPLETENESS
6. FREE& OPEN SOURCE
#SHORTCOMINGS OF PYTHON
1LESSER LIBRARIES
2.SLOWLANGUAGE
3.WEAK ON TYPE BINDNG
About MySQL...
MySQL is currently the most popular open source database
software. It is a multi-user, multi threated database management
system. MySQL is espically popular on the web. It is one of the
parts of the very popular LAMP platform. Linux , Apache,
MySQL and PHP or WIMP platform Windows. All was
founded by Michoel W ide (Monty).David Axmark and Allan
Larsson in Sweden in year 1995.
#BATURES OF MySOL
Open source& Free of Cost:
1Portabjiiity: Smallenough in size to install and run
it in any types of Hardware and OS like Linux, MS Windows,
etc.
Requirements...
HARDWARE REOURENENTS
1.Computer: for coding and typing the required documents of
the project.
2.Printer: to print the required documents of the project.
3.Compact drive
4.Processor: Pentium quadcore
5.RAM:64mb
6.Hard disk:20gb
SOFTWARE REQUREMENIS
1.Opening system: Windows 10
2.Python3: for execution of program
3.MySQL: for starting data in the database
4.Python-MySQL connector: for database connectivity
5.Microsoft word: for presentation of output.
About The Project..
My project on LIBRARY MANAGEMENT" give idea
about the management in Library. The package gives all
the information regarding the details , ,patient and other
worker details medical facilities.
CODING:
from sys import exit
import mysql.connector as sql
conn=sql.connect(host='localhost', user='root', passwd='1234',d
atabase'HMScodes')
if conn.is_connected):
print('successfully connected")
c1=conn.cursor)
print( ---")
print("HOSPITAL MANAGEMENT SYSTEM")
print('-
print("GOD WISHES YOU")
print("1.LOGIN")
print("2.EXIT")
choice=int(input("ENTER YOUR CHOICE:")
if choice==1:
print("WELCOME TO HOSPITAL")
print("successfully connected")
print("1.RegisteringPatient details")
print(2.Registering Doctor details')
print(3.RegisteringWorker details")
print("4.total patient details")
print("5.total doctor details")
print("6.total worker details")
print('7.Patient detail")
print('8.Doctor detail)
print(9.Worker detail')
print(10.Exit)
choice=int(input('ENTER YOUR CHOICE:)
if choice==1:
elif choice==3:
elif choice==4:
sql_w='select*from patient_details
c1.execute(sql_w)
r= c1.fetchall()
for iin r:
print()
elif choice==5:
sql_x="'select*from doctor_details"
c1.execute(sql_x)
s=c1.fetchall)
for iin s:
print(i)
elif choice==6:
sql_y="select*from worker_details"
c1.execute(sql_y)
t=c1.fetchall()
for iin t:
print(i)
elif choice==7:
h=input("Enter the name:")
sql_w='select*from patient_details where
P_name=("0").format(h)
c1.execute(sql_w)
u= c1.fetchall)
for iin u:
print(i)
elif choice==8:
d=input("Enter the name:")
sql_d='select*from doctor_details where
P_name=("0").format(d)
c1.execute(sql_d)
V=c1.fetchall)
for i in V:
print()
elif choice==9:
f=input("Enter the name:")
sql_f='select*from worker_details where
P_name=("0").format()
c1.execute(sql_f)
w=c1.fetchall)
for iin w:
print()
elif choice==10:
exit)
break
else:
print('wrong username&password')
if choice==2:
exit)
QUTPUT
DLEShell3.102
Fie Edit Shell Debug Ogbons Window Help
Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64) ] on wins
Type "help", "copytight", "credits" or "license () " for 0OIe infornation.
>>>
RESTART: C:/Python310/final code.py
successiully connected
mysql>
BIBLIOGRAPHY
#TO DEVELOP THIS PROJECT MANY
REFERENCES WERE USED:
2.WWw.GOOGLE.COM
3.Www.PYTHON.ORG.IN
4.WWW.MYSQL.ORG.IN#