""" Purpose: demonstrate int and float numeric input processing """ # Get inputs x_reply = input( "Enter base (integer): " ) n_reply = input( "Enter exponent (decimal): " ) print() # Convert inputs to numerics x = int( x_reply ) # Cast string x_reply to get an int n = float( n_reply ) # Cast string n_reply to get a decimal # Compute x to the nth power value = x ** n # Display result print( value )