total = 1 num = 1 times = 1 staawwp = False while staawwp == False : num = input("enter a number:") if num == "X" or "x" : staawwp = True else : num = int(num) total = total + num times = times + 1 total - 1 num - 1 times - 1 average = total / times print("Your Total is:", total) print("Your Average is:", average)