adplus-dvertising
frame-decoration

Question

Consider the snippet of code shown below and predict the output.
X=”compsci-bits”
print(“%56s”,X)

a.

56 blank spaces before compsci-bits

b.

56 blank spaces before compsci and bits

c.

56 blank spaces after compsci-bits

d.

no change

Posted under Python

Answer: (a).56 blank spaces before compsci-bits

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Consider the snippet of code shown below and predict the output.

Similar Questions

Discover Related MCQs