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 RĂ©ponses
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