+ 5
Alex Wairegi it looks like you need to move the print(y) outside the else and to the left else: y=y-20 i=i+1 print(y)
6th Dec 2022, 4:17 PM
BroFar
BroFar - avatar
0
It’s hard to tell if you don’t append the problem description. But if you just need one value, why do you print them all out? Can’t you put the print function outside the loop, and choose what you want to print out?
6th Dec 2022, 4:08 PM
Per Bratthammar
Per Bratthammar - avatar