Answers for "does %s work in python"

4

%s in python

a = "some text"
print("%s < the string has been added here" % a)
# OUTPUT: some text < the string has been added here
Posted by: Guest on July-21-2021

Code answers related to "does %s work in python"

Python Answers by Framework

Browse Popular Code Answers by Language