print("the date is"date "or"date +"main(notice how string concatenation is used to produce the required output here is how the result looksplease enter daymonthand year numbers the date is or may string formatting as you have seenbasic string operations can be used to build nicely formatted output this technique is useful for simple formattingbut building up complex output through slicing and concatenation of smaller strings can be tedious python provides powerful string formatting operation that makes the job much easier let' start with simple example here is run of the change counting program from last change counter please enter the count of each coin type how many quarters do you have how many dimes do you have how many nickels do you have how many pennies do you have the total value of your change is notice that the final value is given as fraction with only one decimal place this looks funnysince we expect the output to be something like $ we can fix this problem by changing the very last line of the program as followsprint("the total value of your change is ${ : }format(total)now the program prints this messagethe total value of your change is $ let' try to make some sense of this the format method is built-in for python strings the idea is that the string serves as sort of template and values supplied as parameters are plugged into this template to form new string so string formatting takes the formformat(