total=0 realism=0 count=0 while realism==0: number=int(input("Enter a number. Type 0 to show you've finished the list.")) count+=1 print(count) if number==0: realism=1 else: total=total+number average=total/count print("Total:",total) print("Average:",average)