adplus-dvertising
frame-decoration

Question

What is the output of the code shown?
x=3.3456789
'%s' %x, str(x)

a.

Error

b.

(‘3.3456789’, ‘3.3456789’)

c.

(3.3456789, 3.3456789)

d.

(‘3.3456789’, 3.3456789)

Answer: (b).(‘3.3456789’, ‘3.3456789’)

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?