'xxx{}yyy{}zzzformat(' ' 'xxxayyy zzz'xxx{}yyy{}zzz'xxxayyy zzz in python the string type has method called format(which takes arguments and returns another string which is the original with the method' arguments inserted into it in certain places those places are marked with curly brackets in the string curly brackets are otherwise quite normal characters it' only the format(method that cares about them in its simplest formthe format(method replaces each pair of curly brackets with the corresponding argument