Strings And Text

1
2
x = "Ernest Hemingway published his novel The Old Man and the Sea in [---]." % 1952
print x

What do you use to replace [---] so that the output is:

1
Ernest Hemingway published his novel The Old Man and the Sea in 1952.

"%s" None of these %s '%s'

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Sonali Srivastava
Jul 18, 2014

%s is always used no %s' or %s" is used...It is syntax rule.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...