0
Помогите понять в чем ошибка
делаю калькулятор. не простейший а для 3 чисел, хз зачем, просто захотел. выдает или "Traceback (most recent call last): File "./Playground/file0.py", line 7, in <module> rezult = int(input()) EOFError: EOF when reading a line " или если в коде изменить "rezult = int(input())" на "rezult = int(input(x, y, z, c, v))" то выдает "Traceback (most recent call last): File "./Playground/file0.py", line 7, in <module> rezult = int(input(x, y, z, c, v)) TypeError: input expected at most 1 argument, got 5 " для проверки использую пример 10 / 2 + 3 https://code.sololearn.com/c7c7OTlBCqZJ/?ref=app https://code.sololearn.com/c7c7OTlBCqZJ/?ref=app
5 ответов
+ 1
Remove the line with rezult, remove checks z!=0, v!=0 and in print use v instead of y
+ 1
You have to use 'and', not &
0
Теперь такую ошибку выдаёт
Traceback (most recent call last):
File "./Playground/file0.py", line 8, in <module>
if y == '+' & c == '+':
TypeError: unsupported operand type(s) for &: 'str' and 'str'
0
Thanks for helping me with my code. I myself was able to rewrite the code to make it work, I'll throw it off a little later.