What is Ruby equivalent of Python's `s= "hello, %s. Where is %s?" % ("John","Mary")`

Viewed 91534

In Python, this idiom for string formatting is quite common

s = "hello, %s. Where is %s?" % ("John","Mary")

What is the equivalent in Ruby?

4 Answers
Related