from string import Template print(Template('Hallo $wer').substitute(wer=wer))