Python neophyte here. I was wondering if someone could help with the KeyError I am getting when using a dictionary for string interpolation in str.format.
KeyError
You're right - the parser isn't that complex, and can't handle variable subscripts for dictionaries. Your work around is:
string2 = 'Interpolating {somevar}'.format(whateverhere..., somevar=dictionary['1'])