First off, you don’t “return” anything. It’s important to understand that printing some text and returning a value are completely unrelated tasks:
Let’s think about the logic. If we want to print only once, then the call to print should be outside the loop, right? So, fix the indentation of the code, so that it’s outside the loop.
Aside from that, =+ isn’t a thing. result =+ i means result = +i, which is essentially the same as result = i. You want += instead.
As we’ve learned here, indentation is important in Python. Therefore, please make sure to format the code correctly when posting here, so that we can see it indented as you actually have it. Please read the pinned thread to understand how.