[ad_1]
Your function returns a bool which is either zero or one. Change it to int and your code will work.
[ad_2]
solved Why is my while loop function only returning ‘1’?
[ad_1]
Your function returns a bool which is either zero or one. Change it to int and your code will work.
[ad_2]
solved Why is my while loop function only returning ‘1’?