๐Ÿ”’ Closed Solved

Status
Not open for further replies.

_Big Boss_

Forum Veteran
Mga mam/sir baka po alam nyopo ito. Kaylangan lang po magawa ngayun. Need napo kasi ipasa din mamaya. Sana po may tumulong sakin. Kahit ako napo mag bahala sa value. Tas gawin nyo lang po yung code. Salamat po need lang po ipasa ng 10. Dahil kung ako po. Hindi kopo kakayanin na matapos hanggang 10PM. Salamat po.

Screenshot_20210701_132756.webp
 
let me see your code

bakit while = loop
print('Dr. Python: A Program for patients Prescription')
print('-------------------------------------------------')
print('')
print('CAPSLOCK')
print('' )
print('')
print('')
print('')
print('ITEP 206 Integrative Programming Technologies 1')
print('2nd Semester 2020-2021')
print('-------------------------------------------------')
mNumber = 0
menuList = ['Search','View','Add']
illnessList['Fiver', 'Flu']
print('--------------------Menu--------------------')
for items in menuList:
mnumber += 1
print(str(mnumber), items)
loop = true
while = loop:
pChoice = int(input('Select Nember: '))
if pChoice == 1 :
print('Search illnesses')
illness = input('Enter illness: ')
if illness in illnessList:
print('Searching.......')
print('Prescription')
else
print('Does not exist in the desease list.')
break
elif pChoice == 2:
print('View illnesses')
for illness in illnessList:
print(illness)
if selectIllness in illnessList:
print('Selected illness is : ', selectIllness)
print('View Prescription')
else:
print('Dont not exist in the list of illness')
elif pChoice == 3:
print('Add prescription')
presDate = input('Input Prescription Date: ')
presHospitalAddress = input('Input Clinic/Hospital Address':)
presHospitalContactNumber = input('Input Clinic/ Hospital Contact Number: ')
presPatientNumber = input('Input Patient Number: ')
presPatientName = input('Patient Name: ')
others = input('others')

print('Generating Printed Reports....... ')
print('Date', presDate)
print('etc')
 
print('Dr. Python: A Program for patients Prescription')
print('-------------------------------------------------')
print('')
print('CAPSLOCK')
print('Amolate, James')
print('Virtucio, Michael Jay')
print('Manguerra, John Mikko')
print('Amante, Melchor')
print('ITEP 206 Integrative Programming Technologies 1')
print('2nd Semester 2020-2021')
print('-------------------------------------------------')
mNumber = 0
menuList = ['Search','View','Add']
illnessList['Fiver', 'Flu']
print('--------------------Menu--------------------')
for items in menuList:
mnumber += 1
print(str(mnumber), items)
loop = true
while = loop:
pChoice = int(input('Select Nember: '))
if pChoice == 1 :
print('Search illnesses')
illness = input('Enter illness: ')
if illness in illnessList:
print('Searching.......')
print('Prescription')
else
print('Does not exist in the desease list.')
break
elif pChoice == 2:
print('View illnesses')
for illness in illnessList:
print(illness)
if selectIllness in illnessList:
print('Selected illness is : ', selectIllness)
print('View Prescription')
else:
print('Dont not exist in the list of illness')
elif pChoice == 3:
print('Add prescription')
presDate = input('Input Prescription Date: ')
presHospitalAddress = input('Input Clinic/Hospital Address':)
presHospitalContactNumber = input('Input Clinic/ Hospital Contact Number: ')
presPatientNumber = input('Input Patient Number: ')
presPatientName = input('Patient Name: ')
others = input('others')

print('Generating Printed Reports....... ')
print('Date', presDate)
print('etc')
Eto po.
 
Pakit complete muna yung selectIllness

Python:
print('Dr. Python: A Program for patients Prescription')
print('-------------------------------------------------')
print('')
print('CAPSLOCK')
print('Amolate, James')
print('Virtucio, Michael Jay')
print('Manguerra, John Mikko')
print('Amante, Melchor')
print('ITEP 206 Integrative Programming Technologies 1')
print('2nd Semester 2020-2021')

menuList = ['Search', 'View', 'Add']
illnessList = ['Fiver', 'Flu']

print('--------------------------------------------')

for i, items in enumerate(menuList):
    print(f'[{i+1}]', items)

print('--------------------Menu--------------------')

while True:
    pChoice = int(input('Select Nember: '))
    if pChoice == 1:
        print('Search illnesses')
        illness = input('Enter illness: ')
   
        if illness in illnessList:
            print('Searching.......')
            print('Prescription')
        else:
            print('Does not exist in the desease list.')
            break
    elif pChoice == 2:
        print('View illnesses')
        for illness in illnessList:
            print(illness)
       
        if 'selectIllness' in illnessList:
            print('Selected illness is : ', 'selectIllness')
            print('View Prescription')
        else:
            print('Dont not exist in the list of illness')
            break
    elif pChoice == 3:
        print('Add prescription')
        presDate = input('Input Prescription Date: ')
        presHospitalAddress = input('Input Clinic/Hospital Address')
        presHospitalContactNumber = input('Input Clinic/ Hospital Contact Number: ')
        presPatientNumber = input('Input Patient Number: ')
        presPatientName = input('Patient Name: ')
        others = input('others')
        break
print('Generating Printed Reports....... ')
print('Date', presDate)
print('etc')
 
Pakit complete muna yung selectIllness

Python:
print('Dr. Python: A Program for patients Prescription')
print('-------------------------------------------------')
print('')
print('CAPSLOCK')
print('Amolate, James')
print('Virtucio, Michael Jay')
print('Manguerra, John Mikko')
print('Amante, Melchor')
print('ITEP 206 Integrative Programming Technologies 1')
print('2nd Semester 2020-2021')

menuList = ['Search', 'View', 'Add']
illnessList = ['Fiver', 'Flu']

print('--------------------------------------------')

for i, items in enumerate(menuList):
    print(f'[{i+1}]', items)

print('--------------------Menu--------------------')

while True:
    pChoice = int(input('Select Nember: '))
    if pChoice == 1:
        print('Search illnesses')
        illness = input('Enter illness: ')
  
        if illness in illnessList:
            print('Searching.......')
            print('Prescription')
        else:
            print('Does not exist in the desease list.')
            break
    elif pChoice == 2:
        print('View illnesses')
        for illness in illnessList:
            print(illness)
      
        if 'selectIllness' in illnessList:
            print('Selected illness is : ', 'selectIllness')
            print('View Prescription')
        else:
            print('Dont not exist in the list of illness')
            break
    elif pChoice == 3:
        print('Add prescription')
        presDate = input('Input Prescription Date: ')
        presHospitalAddress = input('Input Clinic/Hospital Address')
        presHospitalContactNumber = input('Input Clinic/ Hospital Contact Number: ')
        presPatientNumber = input('Input Patient Number: ')
        presPatientName = input('Patient Name: ')
        others = input('others')
        break
print('Generating Printed Reports....... ')
print('Date', presDate)
print('etc')
Sige po salamat po.
 
Status
Not open for further replies.

About this Thread

  • 26
    Replies
  • 730
    Views
  • 2
    Participants
Last reply from:
_Big Boss_

Online now

Members online
775
Guests online
645
Total visitors
1,420

Forum statistics

Threads
2,275,554
Posts
28,964,019
Members
1,231,861
Latest member
james_1923
Back
Top