I am trying to execute this function:
def sleep(sec): for i in range(sec): print(".", end=" "); time.sleep(1);
the problem is that it waits for the for loop to complete and then prints everything. If I use a regular font with \ n, in the end everything works as it should. But with the end = "" this is not so.
source share