SyntaxFix
Write A Post
Hire A Developer
Questions
A simple for loop?
for i in range(3): do()
Or, if you're interested in the results and want to collect them, with the bonus of being a 1 liner:
vals = [do() for _ in range(3)]