Uploaded by DEVENDRA KUMAR YADAV

Sample Project

advertisement
O P JINDAL SCHOOL, PATRATU
.,MJJJJJKKKGFDFDDDCCC
CCCCV
ACADEMIC YEAR : 2020-21
PROJECT REPORT ON
PHARMACY MANAGEMENT SYSTEM
 Roll No
 Name
 Class
 Section
 Subject
 Sub Code
 Project Guide
:
: Sweta Kumari
: XII
: C
: Informatics Practices
: 065
: Mr. Rayees Gulshad
O.P Jindal School, Patratu
Examiner:
(Rayees Gulshad)
Name:
Signature:
O P Jindal School, Patratu
O P JINDAL SCHOOL , PATRATU
CERTIFICATE
This is to certify that MR/MS SWETA KUMARI Roll No:
has
successfully completed the project Work entitled PHARMACY MANAGEMENT
SYSTEM in the subject Informatics Practices (065) laid down in the regulations
of CBSE for the purpose of
Practical Examination in Class XII to
in O P Jindal School , Patratu on
Examiner:
be held
.
(Rayees Gulshad)
Name:
Signature:
Patratu
O P Jindal School,
TABLE OF CONTENTS [ T O C ]
SER
DESCRIPTION
PAGE NO
01
ACKNOWLEDGEMENT
04
02
INTRODUCTION
05
03
OBJECTIVES OF THE PROJECT
05
04
PROPOSED SYSTEM
06
05
HARDWARE AND SOFTWARE REQUIREMENTS
07
06
FLOW CHART
08
07
SOURCE CODE
08
OUTPUT
ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any project depends largely on the
encouragement and guidelines of many others. I take this opportunity to express my
gratitude to the people who have been instrumental in the successful completion of this
project.
I express deep sense of gratitude to almighty God for giving me strength for the
successful completion of the project.
I express my heartfelt gratitude to my parents for constant encouragement while
carrying out this project.
I gratefully acknowledge the contribution of the individuals who contributed in
bringing this project up to this level, who continues to look after me despite my flaws,
I express my deep sense of gratitude to the luminary The Principal, O P Jindal
School , Patratu who has been continuously motivating and extending their helping hand
to us.
I express my sincere thanks to the academician The Vice Principal, O P Jindal
School, Patratu, for constant encouragement and the guidance provided during this
project.
My sincere thanks to Mr. Rayees Gulshad, , a guide, mentor, who critically
reviewed my project and helped in solving each and every problem, occurred during
implementation of the project
The guidance and support received from all the members who contributed and who
are contributing to this project, was vital for the success of the project. I am grateful for
their constant support and help.
PROJECT ON PHARMACY MANAGEMENT SYSTEM
INTRODUCTION
The pharmacy management system, also known as the pharmacy information
system, is a system that stores data and enables functionality that organizes and
maintains the medication use process within pharmacies.
The pharmacy system should Collect data at intake and continue to store
and organize information as the pharmacist learns more about the patient's
medications, their history, goals, and other factors that may affect their health. The
technology within the pharmacy information system should allow the pharmacists
to Access the collected information to form a Plan and Implement creative
strategies that address the patient's issues. After implementing a plan, the
pharmacist should routinely Follow-Up with the patient and make adjustments as
needed to further progress.
OBJECTIVES OF THE PROJECT
The objective of this project is to allow the management to maintain a
clean and structured detail of the pharmacy management system .
# Write programs utilizing modern software tools.
1. Apply simple principles effectively when developing small to medium sized
projects.
2. Write effective procedural code to store small to medium sized information.
3. Students will demonstrate a breadth of knowledge in Informatics Practices,
as exemplified in the areas of systems, theory and software development.
Students will demonstrate ability to conduct a research or applied Informatics
Practices project, requiring writing and presentation skills which exemplify
scholarly style in Informatics Practices.
PR O PO SED SYSTEM
Today one cannot affo rd to rely on th e fallib le hum an bein gs of be really w an ts
to stan d again st to d a y ’
s m erciless com p e titio n w here not to w ise sayin g “
to err is hum
an”no lo nger valid , it’
s ou td ated to ratio nalize your m istake. So, to keep pace w ith tim
e, to b rin g about th e best resu lt w ith out m alfu nctio n in g and g reater efficien cy so to
rep lace th e unend in g heaps of flies w ith a m uch soph isticated hard d isk of th e
com puter.
O ne has to use th e data m anagem ent so ftw are. So ftw are has been an ascent in
ato m izatio n vario us o rg an izatio ns. M any so ftw are p ro ducts w o rkin g are now in m arkets,
w h ich have help ed in m akin g th e o rg an izatio ns w o rk easier and efficien tly. D ata
m anagem ent in itially had to m ain tain a lo t of led gers and a lo t of paper w o rk has to be
done but now so ftw are p ro duct on th is o rg an izatio n has m ade th eir w o rk faster and
easier. N ow on ly th is so ftw are has to be lo aded on th e com pu ter and w o rk can be
done.
HARDWARE AND SOFTWARE REQUIREMENT
 Operating System : Windows 7 Ultimate
 Manufacture
: Dell
 Processor
: Intel® Core ™2 Duo CPU
 RAM
: 3.00 GB
 System Type
: 32- bit Operating System
 Pen And Touch
: No pen or Touch Input
SOFTWARE REQUIRED

Window OS

Python 2.7.18
FLOWCHART
Firstly with the help of
raw_input command in python
we will take all the details from
the user.
After that we will import
pandas and we will create
dataframe . With the help of
print command and dataframe
we will try to give the output
look like bill.
Further , we will do all the
calculations using dataframe .
At last we will save the bill
into sytem as a CSV (Comma
Seperated Values) file.
Then , our program is ready
to generate a pharmacy bill
where all the details are
taken by user .
SOURCE CODE
billno=2334
string ="WELCOME TO HEALTH & CARE MEDICAL CENTRE, RANCHI (JHARKHAND)"
new_string = string.center(80, '*')
print( new_string)
patientname= raw_input("Enter Patient's Name : ")
if patientname=='':
print("ENTER NAME IT'S MANDATORY!!!!")
print(" YOU CANNOT PROCEED FURTHER UNTIL YOU ENTER NAME ")
patientname= raw_input("Enter Patient's Name : ")
doctorname= raw_input(" Enter Doctor's Name: ")
age=int(raw_input("Enter Patient's Age: "))
gender=raw_input("Enter Gender of the Patient : ")
mobileno=int(raw_input("Enter Mobile No. : "))
addressp=raw_input("Enter Address : ")
print("NOW YOU CAN ENTER THE PRODUCT NAME !!!!")
print(" WHEN FINISHED ENTER GENERATE BILL ")
p1=raw_input("Enter 1st medicine name: ")
if p1=='GENERATE BILL':
print ( "TO GENERATE BILL YOU MUST ENTER PRODUCT NAME !!!")
p1= raw_input ("Enter 1st medicine name: ")
Qp1=int(raw_input("Enter quantity of medicine 1: "))
PR1=float(raw_input("Enter price of medicine 1: "))
DR1=raw_input ("Enter batch no. of medicine 1: ")
p2=raw_input("Enter 2nd medicine name: ")
if p2=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno)
print"Date:",(date)
print"
",(time)
Time:
print"Patient's Name : ",(patientname)
print"
",(doctorname)
Doctor's Name:
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
",(mobileno)
Mobile No. :
print"Address :",(addressp)
ARE= "----"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data1 = {'NAME OF THE MEDICINE':[p1],'PRICE PER
MEDICINE':[PR1],'QUANTITY':[Qp1],'BATCH NO.':[DR1]}
rf=pd.DataFrame(data1,index=['1'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2334.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS = ",(Qp1)
print"TOTAL AMOUNT TO BE PAID =
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
Rs.",(PR1*Qp1)
print(NEW_STR)
else:
Qp2=int(raw_input("Enter quantity of medicine 2: "))
PR2=float(raw_input("Enter price of medicine 2: "))
DR2=raw_input ("Enter batch no. of medicine 2: ")
p3=raw_input("Enter 3rd medicine name: ")
if p3=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+1)
print"Date:",(date)
print"
",(time)
Time:
print"Patient's Name : ",(patientname)
print"
",(doctorname)
Doctor's Name:
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
",(mobileno)
Mobile No. :
print"Address :",(addressp)
ARE= "-----"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data2 = {'NAME OF THE MEDICINE':[p1,p2],'PRICE PER
MEDICINE':[PR1,PR2],'QUANTITY':[Qp1,Qp2],'BATCH NO.':[DR1,DR2]}
rf=pd.DataFrame(data2,index=['1','2'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2335.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS = ",(Qp1+Qp2)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp3=int(raw_input("Enter quantity of medicine 3: "))
PR3=float(raw_input("Enter price of medicine 3: "))
DR3=raw_input ("Enter batch no. of medicine 3: ")
p4=raw_input("Enter 4th medicine name: ")
if p4=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+2)
print"Date:",(date)
print"
",(time)
Time:
print"Patient's Name : ",(patientname)
print"
",(doctorname)
print"Patient's Age: ",(age)
Doctor's Name:
print"Gender :",(gender)
print"
",(mobileno)
Mobile No. :
print"Address :",(addressp)
ARE= "------"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data3 = {'NAME OF THE MEDICINE':[p1,p2,p3],'PRICE PER
MEDICINE':[PR1,PR2,PR3],'QUANTITY':[Qp1,Qp2,Qp3],'BATCH NO.':[DR1,DR2,DR3]}
rf=pd.DataFrame(data3,index=['1','2','3'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2336.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS = ",(Qp1+Qp2+Qp3)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp4=int(raw_input("Enter quantity of medicine 4: "))
PR4=float(raw_input("Enter price of medicine 4: "))
DR4=raw_input ("Enter batch no. of medicine 4: ")
p5=raw_input("Enter 5th medicine name: ")
if p5=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+3)
print"Date:",(date)
print"
",(time)
Time:
print"Patient's Name : ",(patientname)
print"
",(doctorname)
Doctor's Name:
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
",(mobileno)
Mobile No. :
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data4 = {'NAME OF THE MEDICINE':[p1,p2,p3,p4],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4],'QUANTITY':[Qp1,Qp2,Qp3,Qp4],'BATCH
NO.':[DR1,DR2,DR3,DR4]}
rf=pd.DataFrame(data4,index=['1','2','3','4'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2337.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS = ",(Qp1+Qp2+Qp3+Qp4)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp5=int(raw_input("Enter quantity of medicine 5: "))
PR5=float(raw_input("Enter price of medicine 5: "))
DR5=raw_input ("Enter batch no. of medicine 5: ")
p6=raw_input("Enter 6th medicine name: ")
if p6=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+4)
print"Date:",(date)
print"
Time:
",(time)
print"Patient's Name : ",(patientname)
print"
",(doctorname)
Doctor's Name:
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
",(mobileno)
Mobile No. :
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data5 = {'NAME OF THE MEDICINE':[p1,p2,p3,p4,p5],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5],'QUANTITY':[Qp1,Qp2,Qp3,Qp4,Qp5],'BATCH
NO.':[DR1,DR2,DR3,DR4,DR5]}
rf=pd.DataFrame(data5,index=['1','2','3','4','5'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2338.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS = ",(Qp1+Qp2+Qp3+Qp4+Qp5)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp6=int(raw_input("Enter quantity of medicine 6: "))
PR6=float(raw_input("Enter price of medicine 6: "))
DR6=raw_input ("Enter batch no. of medicine 6: ")
p7=raw_input("Enter 7th medicine name: ")
if p7=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+5)
print"Date:",(date)
print"
",(time)
print"Patient's Name : ",(patientname)
Time:
print"
",(doctorname)
Doctor's Name:
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
",(mobileno)
Mobile No. :
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data6 = {'NAME OF THE MEDICINE':[p1,p2,p3,p4,p5,p6],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6],'QUANTITY':[Qp1,Qp2,Qp3,Qp4,Qp5,Qp6],'BAT
CH NO.':[DR1,DR2,DR3,DR4,DR5,DR6]}
rf=pd.DataFrame(data6,index=['1','2','3','4','5','6'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2339.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS = ",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp7=int(raw_input("Enter quantity of medicine 7: "))
PR7=float(raw_input("Enter price of medicine 7: "))
DR7=raw_input ("Enter batch no. of medicine 7: ")
p8=raw_input("Enter 8th medicine name: ")
if p8=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+6)
print"Date:",(date)
print"
Time:
",(time)
print"Patient's Name : ",(patientname)
print"
",(doctorname)
Doctor's Name:
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
",(mobileno)
Mobile No. :
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data7 = {'NAME OF THE MEDICINE':[p1,p2,p3,p4,p5,p6,p7],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7],'QUANTITY':[Qp1,Qp2,Qp3,Qp4,Qp5,Qp6,Q
p7],'BATCH NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7]}
rf=pd.DataFrame(data7,index=['1','2','3','4','5','6','7'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2340.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS = ",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp8=int(raw_input("Enter quantity of medicine 8: "))
PR8=float(raw_input("Enter price of medicine 8: "))
DR8=raw_input ("Enter batch no. of medicine 8: ")
p9=raw_input("Enter 9th medicine name: ")
if p9=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+7)
print"Date:",(date)
print"
Time:
",(time)
print"Patient's Name : ",(patientname)
print"
",(doctorname)
Doctor's Name:
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
",(mobileno)
Mobile No. :
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data8 = {'NAME OF THE MEDICINE':[p1,p2,p3,p4,p5,p6,p7,p8],'PRICE
PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8],'QUANTITY':[Qp1,Qp2,Qp3,Qp4,Qp5,Q
p6,Qp7,Qp8],'BATCH NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8]}
rf=pd.DataFrame(data8,index=['1','2','3','4','5','6','7','8'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2341.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS = ",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp9=int(raw_input("Enter quantity of medicine 9: "))
PR9=float(raw_input("Enter price of medicine 9: "))
DR9=raw_input ("Enter batch no. of medicine 9: ")
p10=raw_input("Enter 10th medicine name: ")
if p10=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+8)
print"Date:",(date)
print"
Time: ",(time)
print"Patient's Name : ",(patientname)
print"
Name: ",(doctorname)
Doctor's
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
Mobile No. :
",(mobileno)
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data9 = {'NAME OF THE
MEDICINE':[p1,p2,p3,p4,p5,p6,p7,p8,p9],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9],'QUANTITY':[Qp1,Qp2,Qp3,Qp4,Q
p5,Qp6,Qp7,Qp8,Qp9],'BATCH NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9]}
rf=pd.DataFrame(data9,index=['1','2','3','4','5','6','7','8','9'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2342.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS =
",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8+Qp9)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8+PR9*Qp9
)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp10=int(raw_input("Enter quantity of medicine 10: "))
PR10=float(raw_input("Enter price of medicine 10: "))
DR10=raw_input ("Enter batch no. of medicine 10: ")
p11=raw_input("Enter 11th medicine name: ")
if p11=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+9)
print"Date:",(date)
print"
Time: ",(time)
print"Patient's Name : ",(patientname)
print"
Name: ",(doctorname)
Doctor's
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
Mobile No. :
",(mobileno)
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data10 = {'NAME OF THE
MEDICINE':[p1,p2,p3,p4,p5,p6,p7,p8,p9,p10],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9,PR10],'QUANTITY':[Qp1,Qp2,Qp3,
Qp4,Qp5,Qp6,Qp7,Qp8,Qp9,Qp10],'BATCH
NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,DR10]}
rf=pd.DataFrame(data10,index=['1','2','3','4','5','6','7','8','9','10'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2343.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS =
",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8+Qp9+Qp10)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8+PR9*Qp9
+PR10*Qp10)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp11=int(raw_input("Enter quantity of medicine 11: "))
PR11=float(raw_input("Enter price of medicine 11: "))
DR11=raw_input ("Enter batch no. of medicine 11: ")
p12=raw_input("Enter 12th medicine name: ")
if p12=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+10)
print"Date:",(date)
print"
Time: ",(time)
print"Patient's Name : ",(patientname)
print"
Name: ",(doctorname)
Doctor's
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
Mobile No.
: ",(mobileno)
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data11 = {'NAME OF THE
MEDICINE':[p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9,PR10,PR11],'QUANTITY':[Qp1,Qp2
,Qp3,Qp4,Qp5,Qp6,Qp7,Qp8,Qp9,Qp10,Qp11],'BATCH
NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,DR10,DR11]}
rf=pd.DataFrame(data11,index=['1','2','3','4','5','6','7','8','9','10','11'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2344.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS =
",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8+Qp9+Qp10+Qp11)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8+PR9*Qp9
+PR10*Qp10+PR11*Qp11)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp12=int(raw_input("Enter quantity of medicine 12: "))
PR12=float(raw_input("Enter price of medicine 12: "))
DR12=raw_input ("Enter batch no. of medicine 12: ")
p13=raw_input("Enter 13th medicine name: ")
if p13=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+11)
print"Date:",(date)
print"
Time: ",(time)
print"Patient's Name : ",(patientname)
print"
Name: ",(doctorname)
Doctor's
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
Mobile No.
: ",(mobileno)
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data12 = {'NAME OF THE
MEDICINE':[p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9,PR10,PR11,PR12],'QUANTITY':[Qp
1,Qp2,Qp3,Qp4,Qp5,Qp6,Qp7,Qp8,Qp9,Qp10,Qp11,Qp12],'BATCH
NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,DR10,DR11,DR12]}
rf=pd.DataFrame(data12,index=['1','2','3','4','5','6','7','8','9','10','11','
12'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2345.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS =
",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8+Qp9+Qp10+Qp11+Qp12)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8+PR9*Qp9
+PR10*Qp10+PR11*Qp11+PR12*Qp12)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp13=int(raw_input("Enter quantity of medicine 13: "))
PR13=float(raw_input("Enter price of medicine 13: "))
DR13=raw_input ("Enter batch no. of medicine 13: ")
p14=raw_input("Enter 14th medicine name: ")
if p14=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+12)
print"Date:",(date)
print"
Time: ",(time)
print"Patient's Name : ",(patientname)
print"
Name: ",(doctorname)
Doctor's
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
No. : ",(mobileno)
Mobile
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data13 = {'NAME OF THE
MEDICINE':[p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9,PR10,PR11,PR12,PR13],'QUANTITY
':[Qp1,Qp2,Qp3,Qp4,Qp5,Qp6,Qp7,Qp8,Qp9,Qp10,Qp11,Qp12,Qp13],'BATCH
NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,DR10,DR11,DR12,DR13]}
rf=pd.DataFrame(data13,index=['1','2','3','4','5','6','7','8','9','10','11','
12','13'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2346.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS =
",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8+Qp9+Qp10+Qp11+Qp12+Qp13)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8+PR9*Qp9
+PR10*Qp10+PR11*Qp11+PR12*Qp12+PR13*Qp13)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp14=int(raw_input("Enter quantity of medicine 14: "))
PR14=float(raw_input("Enter price of medicine 14: "))
DR14=raw_input ("Enter batch no. of medicine 14: ")
p15=raw_input("Enter 15th medicine name: ")
if p15=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+13)
print"Date:",(date)
print"
Time: ",(time)
print"Patient's Name : ",(patientname)
print"
Name: ",(doctorname)
Doctor's
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
No. : ",(mobileno)
Mobile
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data14 = {'NAME OF THE
MEDICINE':[p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9,PR10,PR11,PR12,PR13,PR14],'QUA
NTITY':[Qp1,Qp2,Qp3,Qp4,Qp5,Qp6,Qp7,Qp8,Qp9,Qp10,Qp11,Qp12,Qp13,Qp14],'BATCH
NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,DR10,DR11,DR12,DR13,DR14]}
rf=pd.DataFrame(data14,index=['1','2','3','4','5','6','7','8','9','10','11','
12','13','14'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2347.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS =
",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8+Qp9+Qp10+Qp11+Qp12+Qp13+Qp14)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8+PR9*Qp9
+PR10*Qp10+PR11*Qp11+PR12*Qp12+PR13*Qp13+PR14*Qp14)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp15=int(raw_input("Enter quantity of medicine 15: "))
PR15=float(raw_input("Enter price of medicine 15: "))
DR15=raw_input ("Enter batch no. of medicine 15: ")
p16=raw_input("Enter 16th medicine name: ")
if p16=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+14)
print"Date:",(date)
print"
Time: ",(time)
print"Patient's Name : ",(patientname)
print"
Doctor's Name: ",(doctorname)
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
Mobile
No. : ",(mobileno)
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data15 = {'NAME OF THE
MEDICINE':[p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9,PR10,PR11,PR12,PR13,PR14,PR15]
,'QUANTITY':[Qp1,Qp2,Qp3,Qp4,Qp5,Qp6,Qp7,Qp8,Qp9,Qp10,Qp11,Qp12,Qp13,Qp14,Qp1
5],'BATCH
NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,DR10,DR11,DR12,DR13,DR14,DR15]}
rf=pd.DataFrame(data15,index=['1','2','3','4','5','6','7','8','9','10','11','
12','13','14','15'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2348.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS =
",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8+Qp9+Qp10+Qp11+Qp12+Qp13+Qp14+Qp15)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8+PR9*Qp9
+PR10*Qp10+PR11*Qp11+PR12*Qp12+PR13*Qp13+PR14*Qp14+PR15*Qp15)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp16=int(raw_input("Enter quantity of medicine 16: "))
PR16=float(raw_input("Enter price of medicine 16: "))
DR16=raw_input ("Enter batch no. of medicine 16: ")
p17=raw_input("Enter 17th medicine name: ")
if p17=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+15)
print"Date:",(date)
print"
Time: ",(time)
print"Patient's Name : ",(patientname)
print"
Doctor's Name: ",(doctorname)
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
Mobile
No. : ",(mobileno)
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data16 = {'NAME OF THE
MEDICINE':[p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9,PR10,PR11,PR12,PR13,PR14,PR15,
PR16],'QUANTITY':[Qp1,Qp2,Qp3,Qp4,Qp5,Qp6,Qp7,Qp8,Qp9,Qp10,Qp11,Qp12,Qp13,Qp1
4,Qp15,Qp16],'BATCH
NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,DR10,DR11,DR12,DR13,DR14,DR15,DR16]
}
rf=pd.DataFrame(data16,index=['1','2','3','4','5','6','7','8','9','10','11','
12','13','14','15','16'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2349.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS =
",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8+Qp9+Qp10+Qp11+Qp12+Qp13+Qp14+Qp15+Qp16)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8+PR9*Qp9
+PR10*Qp10+PR11*Qp11+PR12*Qp12+PR13*Qp13+PR14*Qp14+PR15*Qp15+PR16*Qp16)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp17=int(raw_input("Enter quantity of medicine 17: "))
PR17=float(raw_input("Enter price of medicine 17: "))
DR17=raw_input ("Enter batch no. of medicine 17: ")
p18=raw_input("Enter 18th medicine name: ")
if p18=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+16)
print"Date:",(date)
print"
Time: ",(time)
print"Patient's Name : ",(patientname)
print"
Doctor's Name: ",(doctorname)
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
Mobile No. : ",(mobileno)
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data17 = {'NAME OF THE MEDINCE
':[p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9,PR10,PR11,PR12,PR13,PR14,PR15,
PR16,PR17],'QUANTITY':[Qp1,Qp2,Qp3,Qp4,Qp5,Qp6,Qp7,Qp8,Qp9,Qp10,Qp11,Qp12,Qp1
3,Qp14,Qp15,Qp16,Qp17],'BATCH
NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,DR10,DR11,DR12,DR13,DR14,DR15,DR16,
DR17]}
rf=pd.DataFrame(data17,index=['1','2','3','4','5','6','7','8','9','10','11','
12','13','14','15','16','17'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2350.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS =
",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8+Qp9+Qp10+Qp11+Qp12+Qp13+Qp14+Qp15+Qp16+Qp1
7)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8+PR9*Qp9
+PR10*Qp10+PR11*Qp11+PR12*Qp12+PR13*Qp13+PR14*Qp14+PR15*Qp15+PR16*Qp16+PR17*Q
p17)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp18=int(raw_input("Enter quantity of medicine 18: "))
PR18=float(raw_input("Enter price of medicine 18: "))
DR18=raw_input ("Enter batch no. of medicine 18: ")
p19=raw_input("Enter 19th medicine name: ")
if p19=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+17)
print"Date:",(date)
print"
Time: ",(time)
print"Patient's Name : ",(patientname)
print"
Doctor's Name: ",(doctorname)
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
Mobile No. : ",(mobileno)
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data18 = {'NAME OF THE
MEDICINE':[p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18],'P
RICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9,PR10,PR11,PR12,PR13,PR14,PR15,
PR16,PR17,PR18],'QUANTITY':[Qp1,Qp2,Qp3,Qp4,Qp5,Qp6,Qp7,Qp8,Qp9,Qp10,Qp11,Qp1
2,Qp13,Qp14,Qp15,Qp16,Qp17,Qp18],'BATCH
NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,DR10,DR11,DR12,DR13,DR14,DR15,DR16,
DR17,DR18]}
rf=pd.DataFrame(data18,index=['1','2','3','4','5','6','7','8','9','10','11','
12','13','14','15','16','17','18'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2351.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS =
",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8+Qp9+Qp10+Qp11+Qp12+Qp13+Qp14+Qp15+Qp16+Qp1
7+Qp18)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8+PR9*Qp9
+PR10*Qp10+PR11*Qp11+PR12*Qp12+PR13*Qp13+PR14*Qp14+PR15*Qp15+PR16*Qp16+PR17*Q
p17+PR18*Qp18)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp19=int(raw_input("Enter quantity of medicine 19: "))
PR19=float(raw_input("Enter price of medicine 19: "))
DR19=raw_input ("Enter batch no. of medicine 19: ")
p20=raw_input("Enter 20th medicine name: ")
if p20=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+18)
print"Date:",(date)
print"
Time: ",(time)
print"Patient's Name : ",(patientname)
print"
Doctor's Name: ",(doctorname)
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
Mobile No. : ",(mobileno)
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data19 = {'NAME OF THE
MEDICINE':[p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19
],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9,PR10,PR11,PR12,PR13,PR14,PR15,
PR16,PR17,PR18,PR19],'QUANTITY':[Qp1,Qp2,Qp3,Qp4,Qp5,Qp6,Qp7,Qp8,Qp9,Qp10,Qp1
1,Qp12,Qp13,Qp14,Qp15,Qp16,Qp17,Qp18,Qp19],'BATCH
NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,DR10,DR11,DR12,DR13,DR14,DR15,DR16,
DR17,DR18,DR19]}
rf=pd.DataFrame(data19,index=['1','2','3','4','5','6','7','8','9','10','11','
12','13','14','15','16','17','18','19'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2352.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS =
",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8+Qp9+Qp10+Qp11+Qp12+Qp13+Qp14+Qp15+Qp16+Qp1
7+Qp18+Qp19)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8+PR9*Qp9
+PR10*Qp10+PR11*Qp11+PR12*Qp12+PR13*Qp13+PR14*Qp14+PR15*Qp15+PR16*Qp16+PR17*Q
p17+PR18*Qp18+PR19*Qp19)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
else:
Qp20=int(raw_input("Enter quantity of medicine 20: "))
PR20=float(raw_input("Enter price of medicine 20: "))
DR20=raw_input ("Enter batch no. of medicine 20: ")
p21=raw_input("Enter 21th medicine name: ")
if p21=='GENERATE BILL':
from datetime import datetime
now=datetime.now()
date=now.strftime("%d|%m|%y")
time=now.strftime("%H:%M:%S")
print( new_string)
print" Bill No:",(billno+19)
print"Date:",(date)
print"
Time: ",(time)
print"Patient's Name : ",(patientname)
print"
Doctor's Name: ",(doctorname)
print"Patient's Age: ",(age)
print"Gender :",(gender)
print"
Mobile No. : ",(mobileno)
print"Address :",(addressp)
ARE= "
"
NEW_ARE = ARE.center(80, '-')
print(NEW_ARE)
import pandas as pd
data20 = {'NAME OF THE
MEDICINE':[p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19
,p20],'PRICE PER
MEDICINE':[PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9,PR10,PR11,PR12,PR13,PR14,PR15,
PR16,PR17,PR18,PR19,PR20],'QUANTITY':[Qp1,Qp2,Qp3,Qp4,Qp5,Qp6,Qp7,Qp8,Qp9,Qp1
0,Qp11,Qp12,Qp13,Qp14,Qp15,Qp16,Qp17,Qp18,Qp19,Qp20],'BATCH
NO.':[DR1,DR2,DR3,DR4,DR5,DR6,DR7,DR8,DR9,DR10,DR11,DR12,DR13,DR14,DR15,DR16,
DR17,DR18,DR19,DR20]}
rf=pd.DataFrame(data20,index=['1','2','3','4','5','6','7','8','9','10','11','
12','13','14','15','16','17','18','19','20'])
print(rf)
rf.to_csv("C:\\Users\\DELL\\Desktop\\2353.csv")
print
"
"
print"TOTAL NUMBER OF ITEMS =
",(Qp1+Qp2+Qp3+Qp4+Qp5+Qp6+Qp7+Qp8+Qp9+Qp10+Qp11+Qp12+Qp13+Qp14+Qp15+Qp16+Qp1
7+Qp18+Qp19+Qp20)
print"TOTAL AMOUNT TO BE PAID =
Rs.",(PR1*Qp1+PR2*Qp2+PR3*Qp3+PR4*Qp4+PR5*Qp5+PR6*Qp6+PR7*Qp7+PR8*Qp8+PR9*Qp9
+PR10*Qp10+PR11*Qp11+PR12*Qp12+PR13*Qp13+PR14*Qp14+PR15*Qp15+PR16*Qp16+PR17*Q
p17+PR18*Qp18+PR19*Qp19+PR20*Qp20)
STR= " THANKS FOR VISITING "
NEW_STR = STR.center(80, '*')
print(NEW_STR)
OUTPUT
Download