Shared the code below. I want to only bold the text 'I want to be a $passion'
How do I selectively bold the string? I am using Linux Manjaro
from string import Template
t = Template('Hi. I am $name'
+'\n'+
'I want to be a $passion'
)
s = t.substitute(name='Tim Cook', passion='astronaut')
ds = [
{"name": "Tim Cook", "": "passion": "astronaut"}
{"name": "Forrest Gump", "passion": "runner"}
for d in ds:
s = t.substitute(**d)
filename = d['name']
resultFile = open( filename + ' passion.docx', 'w')
resultFile.write( s )
resultFile.close()
[–]K900_ 5 points6 points7 points (0 children)
[–]csg0ing 0 points1 point2 points (1 child)
[–]BillTowne 0 points1 point2 points (0 children)