On 06/11/2018 04:19 PM, moha...@gmail.com wrote:

BTW i tried the code above, but i encountered a syntax error.

print(u"\u001b[{}A".format(n), flush=True, end="")
                                                      ^
SyntaxError :invalid syntax


That's probably because you have been running it in Python2.
Most people here assume you mean Python3 nowadays if you say Python, especially when you ask a beginner's question.


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to