0

I need to show this ASCII code in print (python) but when i do, it's show me error. I'm not using other files extras only simple file.py

The console show me "SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 122-123: truncated \xXX escape"

print("""

            ______________________
           /\  __________________ \
          /xx\ \________________/\ \
         /x/\x\ \            /x/\x\ \
        /x/ /\x\ \          /x/ /\x\ \
       /x/ /  \x\ \________/_/_/__\_\ \____________________
      /x/ /    \x\____________________  __________________ \
     /x/ /     /x/ __________________/\ \________________/\ \
    /x/ /_____/x/ /_____/x/ /_____/x/\x\ \____        /x/\x\ \
   /x/_/_____/x/ /______\/_/_____/x/ /\x\ \__ \      /x/ /\x\ \
   \x\ \____/x/ /_______/\ \____/x/ /  \x\ \/\ \____/_/_/__\_\ \
    \x\ \  /x/ /     /x/\x\ \  /x/ /    \x\_____________________\ 
     \x\ \/x/ /     /x/ /\x\_\/x/ /    _/x/ ______ ___________  /
      \x\/x/ /_____/_/_/__\_\/x/_/_____/x/ /__\_\_\/_/     /x/ /
       \xx/_/________________\/_/_____/x/ /______\/_/     /x/ /
       /xx\ \________________/\ \____/x/ /______ /\ \    /x/ /
      /x/\x\ \  /x/ /_____/x/\x\ \__/x/ /     /x/\x\ \  /x/ /
     /x/ /\x\ \/x/_/_____/x/ /\x\ \/x/ /     /x/ /\x\ \/x/ /
    /x/ /  \x\ \_\_\____/_/_/__\_\/x/ /\____/_/_/__\_\/x/ /
   /x/ /    \x\___________________\/ /________________\/ /
  /x/ /     /x/ __________________  ____________________/
 /x/ /_____/x/ /__\_\/x/ /_____/x/ /__\_\/x/ /
/x/_/_____/x/ /______\/_/_____/x/ /______\/ /
\x\ \____/x/ /_______/\ \____/x/ /_________/
 \x\ \  /x/ /        \x\ \  /x/ /
  \x\ \/x/ /          \x\ \/x/ /
   \x\/x/ /____________\_\/x/ /
    \xx/ /________________\/ /
     \/_____________________/

""")

I tried triple quotes, apostrophes and none have worked for me. and also i tried with import modules of UTF-8 but also doesn't work

genpfault
  • 51,148
  • 11
  • 85
  • 139

0 Answers0