+ 1

Где ошибка?

while True: s=input("Знак") if s=="0": break if s in s!=0: x=float(input("x=")) y=float(input("y=")) if s=="+": print(x+y) elif s=="-": print(x-y) elif s=="*": print(x*y) elif s=="/": if s!=0: print(x/y) else: print("falled")

24th Mar 2017, 6:46 PM
Алексей Карсаков
Алексей Карсаков - avatar
3 Answers
+ 4
Guys don't down-vote someone just because they don't speak your language.. I don't speak Russian either but I'd like to help.. Try this Anekcen (Sorry for my spelling, I don't have Russian keyboard): while True: s=input("3Hak: ") if s=="0": break elif s!=0: x=float(input("x=")) y=float(input("y=")) if s=="+": print(x+y) elif s=="-": print(x-y) elif s=="*": print(x*y) elif s=="/": if s!=0: print(x/y) else: print("failed") I hope this helps.. All the best..👍
24th Mar 2017, 7:18 PM
Mark Derby
Mark Derby - avatar
+ 1
thank you:)
24th Mar 2017, 7:22 PM
Алексей Карсаков
Алексей Карсаков - avatar
+ 1
@Anekcen.. U welcome..
24th Mar 2017, 7:24 PM
Mark Derby
Mark Derby - avatar