Answers for "print string with quotes python"

1

python get the elements between quotes in string

import re
foo = 'SetVariables "a" "b" "c" '
bar = re.findall('"([^"]*)"', foo)

print(bar)
### ['a", 'b', 'c']
Posted by: Guest on December-02-2020
5

python put quotes in string

# any character with a "" before it is ignored as syntax and placed in the string

print(""This should work for you" I said")
Posted by: Guest on June-04-2020

Code answers related to "print string with quotes python"

Python Answers by Framework

Browse Popular Code Answers by Language