[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question : Input after all prompts in python

On 06/11/2018 04:19 PM, mohan4h at 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.