string interpolation can make your code much easier to type the first variable name is used for the first %sthe second variable with the second % and so on you must have the same number of % conversion specifiers as you have variables another benefit of using string interpolation instead of string concatenation is interpolation works with any data typenot just strings all values are automatically converted to the string data type if you concatenated an integer to stringyou' get this errorspam print('spam =spamtraceback (most recent call last)file ""line in typeerrorcan' convert 'intobject to str implicitly string concatenation can only combine two stringsbut spam is an integer you would have to remember to put str(spaminstead of spam but with string interpolationthis conversion to strings is done for you try entering this into the interactive shellspam print('spam is % (spam)spam is string interpolation is also known as string formatting creating the secret number while true secretnum getsecretnum(numdigits print(' have thought up number you have % guesses to get it (maxguess) numguesses while numguesses <maxguessline is an infinite while loop that has condition of true so it will loop forever until break statement is executed inside the infinite loopyou get secret number from the getsecretnum(functionpassing it numdigits to tell how many digits you want the secret number to have this secret number is assigned to secretnum rememberthe value in secretnum is string not an integer line tells the player how many digits is in the secret number by using string interpolation instead of string concatenation line sets variable numguesses to to mark this is as the first post questions to