Formatage de string
Faut-il le voir ?
Exemple :
i = 3
j = 4
s = f"I have {i * 'a'} characters a and {j * 'b'} characters b"
print(s)
Autre exemple :
s = "Sinus of pi/2 is approximatively {approx:.3f}"
s = s.format(approx = math.sin(math.pi / 4))
print(s)