output is often wanted in certain format the string object has format method for placing variables within string replacement fields surrounded by {within the string xy print " is { and is { }format(xyx is and is print " is { and is { }format(xyy is and is possible to use also keywordsprint " is {val_yand is {val_x}format(val_x=xval_y=yy is and is