String substitution in Python 3?

Viewed 33794

I'm trying to do something like this:

subs = 'world'
"Hello {[subs]}"

in Python 3.

I can't quite figure out the syntax (having come from Ruby/PHP). Am I missing something? The % operator in the docs I think is Python 2.x deprecated.

4 Answers
Related