0

I tried to use the designs of this site to write a codegame program for python, but I can't understand why the designs I make get errors.

I tried this :

left == '''
((`\        ___ \\ '--._
         .'`   `'    o  )
        /    \   '. __.'
       _|    /_  \ \_\_
jgs   {_\______\-'\__\_\''')

AND MY ERROR WAS: "message": "String literal is unterminated",

Karl Knechtel
  • 62,466
  • 11
  • 102
  • 153
arte
  • 1
  • 1
    Please also include your code and see [How to ask](https://stackoverflow.com/help/how-to-ask) –  Aug 08 '23 at 22:56
  • https://www.python.org/about/gettingstarted – CristiFati Aug 08 '23 at 23:43
  • The problem is caused by the backslashes. Please see the linked duplicate. For future questions, please read the [formatting help](https://stackoverflow.com/help/formatting) to understand how to post code so that it shows up properly. – Karl Knechtel Aug 09 '23 at 00:37
  • @R__i_ the code was included, OP just didn't know how to format it properly. – Karl Knechtel Aug 09 '23 at 00:38
  • Change the first line to `left = r'''` and it should work. Note only one equals, and notice the `r`. Also remove the very last `)`. – Tim Roberts Aug 09 '23 at 00:44

0 Answers0