for examplethe format sequence % means that the second operand should be formatted as an integer ("dstands for "decimal")camels '%dcamels ' the result is the string ' 'which is not to be confused with the integer value format sequence can appear anywhere in the stringso you can embed value in sentencecamels ' have spotted % camels camels ' have spotted camels if there is more than one format sequence in the stringthe second argument has to be tuple each format sequence is matched with an element of the tuplein order the following example uses % to format an integer% to format floating-point number (don' ask why)and % to format string'in % years have spotted % % ( 'camels''in years have spotted camels the number of elements in the tuple must match the number of format sequences in the string the types of the elements also must match the format sequences'% % % ( typeerrornot enough arguments for format string '% 'dollarstypeerror% formata number is requirednot str in the first examplethere aren' enough elementsin the secondthe element is the wrong type the format operator is powerfulbut it can be difficult to use you can read more about it at debugging skill that you should cultivate as you program is always asking yourself"what could go wrong here?or alternatively"what crazy thing might our user do to crash our (seeminglyperfect program?for examplelook at the program which we used to demonstrate the while loop in the on iteration tuple is sequence of comma-separated values inside pair of parenthesis we will cover tuples in