How to initialize a string with single and double quotes in Python

1 Answer

0 votes
s = """abc "defg" '"' 'hij "klmno" p' 'qrst'"""

print(s)
                  
                  

'''
run:

abc "defg" '"' 'hij "klmno" p' 'qrst'

'''

 



answered Feb 22, 2023 by avibootz

Related questions

4 answers 195 views
1 answer 268 views
1 answer 92 views
1 answer 127 views
1 answer 100 views
1 answer 100 views
...