Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess as sub
- import time
- number_of_patients = int(input("How many Patients will you like to fill :"))
- print ("\n____________Fill out this Informations for {0} patient____________\n".format(number_of_patients))
- protein = " Amount of Proteins (g) required :"
- carbohydrate = " Amount of Carbohydrates (g) required :"
- fat = " Amount of Fats (g) required :"
- patient_list = []
- food_class = []
- for patient in range(1,number_of_patients+1):
- all = "Patient " +str(patient)
- print (all)
- p = int(input(protein))
- c = int(input(carbohydrate))
- f = int(input(fat))
- print("\n")
- patient_list.append(all)
- food_class.append(["proteins = {0}".format(p),"Carbonhydrates = {0}".format(c),"Fats = {0}". format (f)])
- time.sleep(1)
- print ("[!]processing the form... Please Wait")
- time.sleep(2)
- sub.call("clear",shell = True)
- print("*****The Information provided are :******\n")
- for i,v in zip(patient_list,food_class):
- print(" {0}".format(i),"\n",v)
- print ("\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement