Помогите понять в чем ошибка | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

5th Nov 2020, 10:19 AM
Егор Лесков
5 Answers
+ 1
Remove the line with rezult, remove checks z!=0, v!=0 and in print use v instead of y
5th Nov 2020, 10:30 AM
Benjamin Jürgens
Benjamin Jürgens - avatar
+ 1
You have to use 'and', not &
5th Nov 2020, 2:56 PM
Benjamin Jürgens
Benjamin Jürgens - avatar
5th Nov 2020, 3:24 PM
Егор Лесков
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'
5th Nov 2020, 1:41 PM
Егор Лесков
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.
5th Nov 2020, 2:58 PM
Егор Лесков