adplus-dvertising
frame-decoration

Question

What is the output of the code shown?
s='%s, %s & %s'
s%('mumbai', 'kolkata', 'delhi')

a.

mumbai kolkata & delhi

b.

Error

c.

No output

d.

‘mumbai, kolkata & delhi’

Posted under Python

Answer: (d).‘mumbai, kolkata & delhi’

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the code shown?