format(s) sets the printing format to its string argument s and returns the former value of the printing format. format with no arguments just returns the current value of the printing format.