✅ Implementing a step counter
I only want the last step counter to print out however im not sure how to do that
3 Replies
Use the debugger, maybe the loop legitimately does run only once
i mean it must run more than once if it prints out the message multiple times if you look at the last Steps Taken it shows 128
Yeah, one time you call this method the loop inside does run 128 times
But all the other times you do that, it runs only once