str( ' value str(value' print("the value is"str(value"the value is notice particularly the last example by turning value into stringwe can use string concatenation to put period at the end of sentence if we didn' first turn value into stringpython would interpret the as numerical operation and produce an errorbecause is not number we now have complete set of operations for converting values among various python data types table summarizes these four python type conversion functionsfunction float(int(str(eval(meaning convert expr to floating point value convert expr to an integer value return string representation of expr evaluate string as an expression table type conversion functions one common reason for converting number into string is so that string operations can be used to control the way the value is printed for examplea program performing date calculations would have to manipulate the monthdayand year as numbers for nicely formatted outputthese numbers would be converted back to strings just for funhere is program that inputs the daymonthand year as numbers and then prints out the date in two different formatsdateconvert py converts day month and year numbers into two date formats def main()get the day month and year daymonthyear eval(input("please enter daymonthand year numbers")date str(month)+"/"+str(day)+"/"+str(yearmonths ["january""february""march""april""may""june""july""august""september""october""november""december"monthstr months[month- date monthstr+str(day"str(year