Код: Выделить всё
a = 5.123
b = 2.456
width = 10
result = f"The result is {(a + b):
Подробнее здесь: [url]https://stackoverflow.com/questions/79167901/why-do-i-need-another-pair-of-curly-braces-when-using-a-variable-in-a-format-spe[/url]
Код: Выделить всё
a = 5.123
b = 2.456
width = 10
result = f"The result is {(a + b):
Подробнее здесь: [url]https://stackoverflow.com/questions/79167901/why-do-i-need-another-pair-of-curly-braces-when-using-a-variable-in-a-format-spe[/url]