Question: THIS IS IN PYTHON! PLEASE ANSWER IN PYTHON Question 10: 4 points Enter and execute the following code l |numString - input (Enter a number:

THIS IS IN PYTHON! PLEASE ANSWER IN PYTHONTHIS IS IN PYTHON! PLEASE ANSWER IN PYTHON Question 10: 4 points

Question 10: 4 points Enter and execute the following code l |numString - input ("Enter a number: ") 2 if numString. isdigit (): 3num int (numString) 4print (num, "to the fourth power is" num**4) 5 else: 6 print("Your input is not a valid number.") print ("Program terminated!") (a) (2 points) Execute the program with at least five different types of input. Examine the output for each input. What does the program do? b) (2 points) What does the isdigit() function do? 2.2 Application Questions Use the Python Interpreter to check your work. Question 11 10 points Download the following book from Project Gutenberg. File 1404.txt from http://www.gutenberg.org/files/1404/ Write a program that prints out every number in the file. Look at every line, then split into words. Print out any word where isdigit returns true. At the end of the program, print the total number of numbers found in the file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!