0
votes
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
1
What is the . in soma.:5 intended to mean? - Charles Duffy

1 Answers

0
votes
num1 = float(input())
num2 = float(input())

soma = (num1 * 3.5 + num2 * 7.5) / (2 * 10)

print(f'MEDIA = {soma:.5f}')