I want to store all the "o"'s printed by stdout.write function into a a variable which could be accesable any time
I have tried using len function to break loop once it reaches certain amount of strings, but no luck
import time
import sys
while True:
sys.stdout.write("o")
sys.stdout.flush()
time.sleep(0.05)