0

I am trying to send a message on twilio. The message includes an ASCII artwork that I have made. It contains characters like *, /, \, " and #. When I add my drawing in a python string, it reads it as an escape sequence, giving me a bunch of unintended errors. How do I reformat my code so that python prints anything that is within the strings as is, without trying to edit it as an escape sequence.

message = client.messages.create(
                     body= """                  


      .---------. | == |
      |.-"""""-.| |----|
      ||       || | == |
      ||       || |----|
      |'-.....-'| |::::|
      `"")---(""` |___.|
     /:::::::::::\" _  "
    /:::=======:::\`\`\
jgs `"""""""""""""`  '-'


                     """
Akshit
  • 424
  • 4
  • 15

1 Answers1

1

s="\\" is a single backslash. You escape escaping.

When copy-pasting, use replace command in your editor (Ctrl+H)

Superior
  • 787
  • 3
  • 17