repeat a function n times one by one python code example Example: repeat a condition n times one by one python for i in range(n): do_sth()