New course! Every coder should learn Generative AI!
Try a free lesson0
How do I continue to enter values āāafter 'yes'?
4 Answers
+ 1
def yn():
a = int(input())
b = int(input())
c = int(input())
if a == (b+c) or b == (a+c) or c == (a+b):
print('yes')
yn()
else:
print('no')
return
yn()
0
Jayakrishnaš®š³ So simple
0
You are not removed yn() in else part's return yn().
So it will cause to call Infinitely now,
if true, then it from if part, if false, then from else..
0