0

I Don't know What To Do.The Error Show is undetermined string literal at line (4).Pls Help

print("      |``````````|  |~~~~")
print("         |    |     |     ~")
print("         |    |     |~~~~")
print("         |    |     | \")
print("         |    |     |  \ ")
print("         ~~~~~~     |   \")
CBP
  • 11
  • 1
  • 1
  • 2
  • 1
    Learn about [escape sequences](https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals)! – 12944qwerty Jan 20 '22 at 02:55
  • 1
    https://www.digitalocean.com/community/tutorials/how-to-format-text-in-python-3 you can find more about escape sequence here – U-33 Jan 20 '22 at 02:56

1 Answers1

2

The backslash is special in python strings. If you want to include them literally, you need to escape them by doubling them:

print("      |``````````|  |~~~~")
print("         |    |     |     ~")
print("         |    |     |~~~~")
print("         |    |     | \\")
print("         |    |     |  \\ ")
print("         ~~~~~~     |   \\")
smac89
  • 39,374
  • 15
  • 132
  • 179