#exam solution import random def bank_account(num_days): total=0 over=0 for i in range(num_days): balance=random.randint(-10, 100) print(balance) total+=balance if(balance<0): over+=1 return total/num_days, over def main(): num_customers=int(input("number of customers ")) num_days=int(input("number of days ")) fee=0 for i in range(num_customers): ave, over=bank_account(num_days) print("customer", i+1, "average balance", ave, "days over", over) if(ave<25): fee+=1 print(fee, "customers paid the monthly fee") main()