notes input and output sometimesa program needs to interact with the user' to get some input data or information from the end user and process it to give the desired output in pythonwe have the input(function for taking the user input the input(function prompts the user to enter data it accepts all user input as string the user may enter number or string but the input(function treats them as strings only the syntax for input(isinput ([prompt]prompt is the string we may like to display on the screen prior to taking the inputand it is optional when prompt is specifiedfirst it is displayed on the screen after which the user can enter data the input(takes exactly what is typed from the keyboardconverts it into string and assigns it to the variable on left-hand side of the assignment operator (=entering data for the input function is terminated by pressing the enter key example fname input("enter your first name"enter your first namearnab age input("enter your age"enter your age type(agethe variable fname will get the string 'arnab'entered by the user similarlythe variable age will get the string ' we can typecast or change the datatype of the string data accepted from user to an appropriate numeric value for examplethe following statement will convert the accepted string to an integer if the user enters any non-numeric valuean error will be generated example #function int(to convert string to integer age intinput("enter your age:")enter your age type(agepython uses the print(function to output data to standard output device -the screen we will learn about function in the function print(evaluates the expression before displaying it on the screen the print( -