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 387 views
1 answer 349 views
1 answer 183 views
1 answer 218 views
1 answer 174 views
1 answer 206 views
...