python-HEALTH MANAGER
import datetime def getdate (): return datetime.datetime.now() def add_exer_food (client): if client == "1" : add_exer_diet = input ( " \n -->Enter number 1 for exercise \n and \n -->2 for food" ) add_item = input ( " \n -->what do you want to add in the list" ) if add_exer_diet== "1" : with open ( "chetan_exercise.txt" , "a" ) as f: add = [ " [" ,getdate(), "] " ,add_item, " \n " ] for i in add: f.write( "%s" % i) print ( "item added succesfully" ) elif add_exer_diet== "2" : with open ( "chetan_food.txt" , "a" ) as f: add = [ " [" ,getdate(), "] " ,add_item, " \n " ] for j in add: f.write( "%s" % j) print ( ...