Write a Python program to: ask the user to enter two integers: int1 and int2. The program uses the exponential operator to calculate and then print the result when int1 is raised to the int2 power. You also want to calculate the result when int1 is raised to the .5 power; however, you realize that it is not possible to take the square root of a negative number. If the value for int1 that is entered is a negative number, print a message to the user to enter a non-negative number (float). If the user does enter a negative number, you will use a while loop to continue prompting the user until you get a valid number. Once the user enters a valid number, you calculate and print the square root. Finish the program by printing the values of int1 and int2.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here