0

[Solved] Why is there no output?

I tried to programm a basic numerical differential equation solver using the runge kutter method using python but at as rightnow I get no output even though it doesn't give me an error. I would be happy if someone could tell me what I'm doing wrong. Thanks in advance My code is below: https://code.sololearn.com/cLxPy2zgt1Zj/?ref=app

16th Sep 2020, 7:07 PM
Tim
Tim - avatar
6 Respuestas
+ 6
Yahya Bey it works because in this case while loop only runs once. a+=1 might be the solution. a+=a makes no sense.
16th Sep 2020, 8:01 PM
Oma Falk
Oma Falk - avatar
+ 4
You have a = 0, intially.. And a+=a is also 0 always.. So it is infinite loop..
16th Sep 2020, 7:39 PM
Jayakrishna 🇮🇳
+ 2
Tim nööö... i often need a 2nd person to debug. One becomes blind after a certain time. Great stuff by the way.
17th Sep 2020, 6:06 AM
Oma Falk
Oma Falk - avatar
+ 1
Jayakrishna🇮🇳 Oma Falk thank you very much Sorry for the dumb question should have spotted it myself
16th Sep 2020, 8:13 PM
Tim
Tim - avatar
+ 1
Tim No problem. It took lot time for me.. I found it last... It Happend to me also..
16th Sep 2020, 8:57 PM
Jayakrishna 🇮🇳
0
I dont know why did it work but put 4 whitespaces in front of return
16th Sep 2020, 7:20 PM
Yahya Bey
Yahya Bey - avatar