num1 = float(input()) num2 = float(input()) soma = (num1 * 3.5 + num2 * 7.5) / (2 * 10) print(f'MEDIA = {soma.:5}')
...fails with:
RUNTIME ERROR File "<fstring>", line 1 (soma.) ^ SyntaxError: unexpected EOF while parsing
.
soma.:5
num1 = float(input()) num2 = float(input()) soma = (num1 * 3.5 + num2 * 7.5) / (2 * 10) print(f'MEDIA = {soma:.5f}')
.
insoma.:5
intended to mean? - Charles Duffy