adplus-dvertising
frame-decoration

Question

What is the output of the code shown below if the system date is 18th August, 2016?
x=1234
res='integers:...%d...%-6d...%06d' %(x, x, x)
res

a.

‘integers:…1234…1234 …001234’

b.

‘integers…1234…1234…123400’

c.

‘integers:… 1234…1234…001234’

d.

‘integers:…1234…1234…001234’

Posted under Python

Answer: (a).‘integers:…1234…1234 …001234’

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 below if the system date is 18th August, 2016?