Red numbers in Visual Studio

Asked

Viewed 63 times

0

I was testing the Python Colorama library and it occurred to me, does anyone know why? I can not run at all, this error appears:

print (\033[33m'hello')
                          ^
SyntaxError: unexpected character after line continuation character

inserir a descrição da imagem aqui

What I do?

1 answer

4


Quotation marks are missing for the ANSI escape sequences. Try the following:

print('\033[33m' + 'hello')
  • thank you so much!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.