Code: Alles auswählen
In [7]: text = "blubb"
In [8]: d = {"u": "a", "b": "p"}
In [9]: for i in d.iteritems():
...: text = text.replace(*i)
...:
In [10]: text
Out[10]: 'plapp'Code: Alles auswählen
In [7]: text = "blubb"
In [8]: d = {"u": "a", "b": "p"}
In [9]: for i in d.iteritems():
...: text = text.replace(*i)
...:
In [10]: text
Out[10]: 'plapp'Code: Alles auswählen
\thispagestyle{empty}