I need to print 'ok' in same place. Any ways to do it?
I've found solutions but they don't works with IDLE correctly:
while (count < 9):
if statusm == "<Status>OK</Status>":
print "ok",
I want every 'ok' on the same line. Thanks!
If you need to print them one at a time, use one of the other answers. This will print them all at once:
That ? :
EDIT
I think it isn't possible to do just one OK, in IDLE. But the following code will give idea of what is possible in a console:
result
Something like this?
Code:
Or, if your 'ok' is at the beginning of the line you can use a single '\r' instead:
Output:
For example, if you want to print "OK" in the exact same spot, you can do :
Result :
worte 10000 times on the same console spot.