num = 1 while num != "X" : num = int( input( "Enter a number: " ) ) if num == "X" : print( "Total: " ) print( "Average: " )