def recycle(): pounds=float(input("enter pounds ")) num_weeks=0 total_points=0 while(pounds>0): total_points+=pounds*2.5 num_weeks+=1 pounds=float(input("enter pounds ")) if(num_weeks>0): return total_points, total_points/num_weeks, num_weeks else: return 0,0,0 def main(): total_points, ave, weeks=recycle() if(weeks==0): print("empty input") else: print("total points", total_points) print("ave", ave) print("number of weeks", weeks) main()