How to quote with backslash in a string with Python

2 Answers

0 votes
s = 'Python programming language "\\"'

print(s)



'''
run:

Python programming language "\"

'''

 



answered Feb 3, 2022 by avibootz
0 votes
s = '"\\Python is an interpreted high-level programming language\\"'

print(s)



'''
run:

"\Python is an interpreted high-level programming language\"

'''

 



answered Feb 3, 2022 by avibootz
...