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.
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.