Windows 7
Python 3.8
Код не может пройти проверку по ниже приведенным данным
Failed test #2 of 37. Cannot check answer. Perhaps output format is wrong.
This is a sample test from the problem statement!
Test input:
-12.0
-8.0
*
Correct output:
96.0
Your code output:
вот мой код
Python 3.8
Код не может пройти проверку по ниже приведенным данным
Failed test #2 of 37. Cannot check answer. Perhaps output format is wrong.
This is a sample test from the problem statement!
Test input:
-12.0
-8.0
*
Correct output:
96.0
pip 19.2.3 setup tools 41.2.0
Your code output:
вот мой код
Python:
a = float(input())
b = float(input())
c = input()
if c == "div" or "mod" or "/":
if b == 0.0:
print("Деление на 0!")
else:
if c == "div":
print(a // b)
elif c == "mod":
print(a % b)
elif c == "/":
print(a / b)
else:
if c == "pow":
print(a ** b)
elif c == "mod":
print(a % b)
elif c == "+":
print(a + b)
elif c == "-":
print(a - b)
elif c == "*":
print(a * b)