This will set the value of counter to +1. It’s apparently valid code, cuz after all, +1 is a positive number. The + just happens to be optional, unlike - for negative numbers.
You should replace it with:
counter += 1
Which will increment the value of counter by 1.
(It’s a shorthand for counter = counter + 1).
Thanks you very much, i thought that is different from c++/c# the main reason been that i work from the book learn gotod in 24 hours and i saw there an incrementation that was write like that. I feel akward now… thanks again!