> -----Original Message-----
> From: Sam Sungshik Kong [mailto:ssk / chol.nospam.net]
> Subject: What is the equivalent of Python's "%s" % "MyString"?
> 
> Hello!
> What is the equivalent of the following Python's expressions?
> 
> s = "My name is %s and my age is %d." % ("Sam", 34)
> 
> or
> 
> s = "My name is %(name)s and my age is %(age)d." % {"name": 
> "Sam", "age":
> 34}
> 
> or
> 
> format = "My name is %(name)s and my age is %(age)d."
> di = {"name": "Sam", "age": 34}
> s = format % di

s = sprintf("My name is %s and my age is %d", "Sam", 34)

or

s = "My name is %s and my age is %d"%["Sam", 34]


gavri