0

How do I continue to enter values ​​after 'yes'?

https://code.sololearn.com/cOHIFMP0BtyC/?ref=app

30th Jul 2020, 11:39 AM
Михаил
4 Respostas
+ 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()
30th Jul 2020, 11:46 AM
Jayakrishna 🇮🇳
30th Jul 2020, 11:49 AM
Михаил
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..
30th Jul 2020, 11:53 AM
Jayakrishna 🇮🇳
30th Jul 2020, 12:04 PM
Михаил