como fazer formatação em python com função de formato

age = 36
txt = "his age is {}"
print(txt.format(age))
Programmer of empires