While loop With def | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

While loop With def

What's is the issue please help me anyone. def lne(fpt): ept = 1 ln = ept + fpt print (ln) return ln fpts = 12 i = 1 while i == fpts: x = lne(i) i = x

4th Apr 2020, 1:44 AM
Thiru Varasan
Thiru Varasan - avatar
2 Answers
0
while loop never executes because i == fpts is false
4th Apr 2020, 3:06 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
Thank you CarrieForle
4th Apr 2020, 3:10 AM
Thiru Varasan
Thiru Varasan - avatar