user_name input('please enter your name'now whatever the user types after the prompt will be stored in the user_name variable using the input functionwe can easily write instructions that will prompt the user to enter data and then incorporate that data into further processing for examplein the following two statementsthe first asks the user for their name and the second prints the result of some simple processing based on the string that is provided user_name input("please enter your name "print("your name in all capitals is",user_name upper()"and has length"len(user_name)it is important to note that the value returned from the input function will be string representing the exact characters that were entered after the prompt if you want this string interpreted as another typeyou must provide the type conversion explicitly in the statements belowthe string that is entered by the user is converted to float so that it can be used in further arithmetic processing user_radius input("please enter the radius of the circle "radius float(user_radiusdiameter radius string formatting we have already seen that the print function provides very simple way to output values from python program print takes zero or more parameters and displays them using single blank as the default separator it is possible to change the separator character by setting the sep argument in additioneach print ends with newline character by default this behavior can be changed by setting the end argument these variations are shown in the following sessionprint("hello"hello print("hello","world"hello world print("hello","world"sep="***"hello***world print("hello","world"end="***"hello world**print("hello"end="***")print("world"hello***world it is often useful to have more control over the look of your output fortunatelypython provides us with an alternative called formatted strings formatted string is template in introduction