0
How do I continue to enter values after 'yes'?
4 Antworten
+ 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
Jayakrishna🇮🇳 That's better? https://code.sololearn.com/cOHIFMP0BtyC/?ref=app