Page 1 of 1

Create a Flow Chart for the following Python function (def orme ( ) ):

Posted: Sun Jul 03, 2022 11:22 am
by answerhappygod
Create a Flow Chart for the following Python function (deforme ( ) ):
Create A Flow Chart For The Following Python Function Def Orme 1
Create A Flow Chart For The Following Python Function Def Orme 1 (73.28 KiB) Viewed 10 times
527 de om() 528 529 530 thand open('medicine.txt","") for line in hand: line-line.stript print (line) Thand.close() cheint input ("Do you want to order medicine? 1. \12.No and Leave')) (ch3) Thand open('medicine, lines thand, readines data input("Enter any medicine number you want to order) for line in lines 1-line-spli it no data in 1 pris (1) ain((line.split("\[4])) nowit (input(lease enter number you want to order"}} order-x*no print("You need to pay elif (ch-2): ate (order)) print("\lease enter these information to order") fhand open("order.txt","a") User ID-input('Please enter your User ID :") medicine input ("Please enter medicinde number :") address input (Please enter your address:") fhand.write("\n"User ID medicinos) fhand.write("\(n)) fhand.write("")) fhand.write("\tat order)) Chand.close() it int("Please select the bank you want to pay with: 1.Maybank \12.MongleongBank 3.Publik while Trues break print you have successfully paid) printt'ou have successfully paid) elit (3) for line in lines: personalin() print you have successfully paid) orme() break le line.split("\t") if not data in 1 print("Medecine not found, please try again') break print("Invalid Choice, Please Enter 1 or 2")