I'm trying to pass a multi line command into the command line, the problem is that that requires using \ in the command, which is also the line continuation character in python. This results in the line breaks in the string to simply be ignored.
A = """line 1 \
line 2 \
line 3"""
print(A)
Returns:
line 1 line 2 line 3
Wanted return:
line 1 \
line 2 \
line 3
Is there a way to do this still?