I have a long string with many replacement fields that I then format with:
firstRep  = replacementDict['firstRep']
secondRep = replacementDict['secondRep']
.
.
.
nthRep    = replacementDict['nthRep']
newString = oldString.format(firstRep = firstRep, 
                             secondRep = secondRep,...,
                             nthRep = nthRep)
Is there a way to avoid having to set every option individually and use a looped approach to this?
Thanks.
 
     
     
     
    