You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
lang-py
range". My two suggestions start with "if". Iterating "directly" rather than via an integer variable is one of the things everyone has to un-learn when coming to Python. At least 90% of the time I see a junior programmer writefor i in range, the correct refactoring is to get rid of range. The accepted answer makes me believe that was true here, as well. It's also interesting to note that the idiomatic way to do "just counting" in python (for i in range(x):) is actually iterating through a list of integers, rather than incrementing a counter.print("\n".join(["Hello, world!"] * 5))