appendix python review the string argument passed to the input(function is user promptwhich tells the user what information we are looking for when the previous statement is executedthe python interpreter will display the string on new line in the terminal followed by the cursorwhat is your nameand then it waits for the user to enter data after the user enters sequence of characters and presses enter the data is returned as string and assigned to the variable namewhich can then be used within the program the input(function can only extract strings but what if we need to extract an integer or real valuein that casethe numeric value will be extracted as string of digits that must be converted to numeric value using the appropriate numeric type constructor in the following exampleuserinput input"what is your gpagpa floatuserinput we extract floating-point value from the user by passing the input string to the float constructorwhich converts the numeric string representation to real value this code segment can be written by nesting the two function callsgpa floatinput("what is your gpa?"new in python xin previous versions of pythonthere were two functions for extracting data from the userinput(and raw input(the input(function has been changed to provide the functionality of raw input(and raw input(has been removed from the language standard output in pythonas you have seen in number of examplesthe print(function is used to display information to the terminal when the following is executedprint"hello world!!the string is displayed in the terminal followed by line feedwhich moves the cursor to the next line the print(function can only output strings but python will implicitly convert any of the built-in types to strings using the str(constructor for examplewhen the following code segment is executedavg (exam exam exam print"your average isprintavg the floating-point value stored in avg will be converted to string and displayed to the terminal the result isyour average is