#exam 4 problem 1 solution def bank_account(): deposit=int(input("enter positive int ")) total=0 c_100=0 c_days=0 while(deposit>0): total+=deposit c_days+=1 if(deposit>=100): c_100+=1 deposit=int(input("enter positive int ")) if(c_days>0): return total/c_days, c_100 else: return 0,0 def main(): ave, c_100=bank_account() if(ave>0): print("ave", ave) if(c_100>0): print("number of days with balance 100 or more is", c_100) else: print("no days with balance 100 or more") else: print("empty input") main()