I'm trying to create a progress bar in the terminal, by repeatedly printing # symbols on the same line.
When i tell Python to not add newlines - using print('#', end='') in Python 3 or print '#', in Python 2 - it prints as desired, but not until the whole function is finished. For example:
import time
i = 0
def status():
    print('#', end='')
while i < 60:
    status()
    time.sleep(1)
    i += 1
This should print '#' every second but it doesn't. It prints them all after 60 seconds. Using just print('#') prints it out every second as expected. How can I fix this?
 
     
     
     
     
    