R
Ruby Newbee
Hi,
In python this is right:
'Hello, Matz! again'
But in ruby it will get wrong:
"Hello, %s %s" %("Matz!","again")
SyntaxError: (irb):39: syntax error, unexpected ',', expecting ')'
"Hello, %s %s" %("Matz!","again")
^
from /usr/bin/irb:12:in `<main>'
So what's the correct syntax for this case?
Thanks.
In python this is right:
'Hello, Matz! again'
But in ruby it will get wrong:
"Hello, %s %s" %("Matz!","again")
SyntaxError: (irb):39: syntax error, unexpected ',', expecting ')'
"Hello, %s %s" %("Matz!","again")
^
from /usr/bin/irb:12:in `<main>'
So what's the correct syntax for this case?
Thanks.