adplus-dvertising
frame-decoration

Question

Which of the following formatting options can be used in order to add ‘n’ blank spaces after a given string ‘S’?

a.

print(“-ns”%S)

b.

print(“-ns”%S)

c.

print(“%ns”%S)

d.

print(“%-ns”%S)

Answer: (d).print(“%-ns”%S)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following formatting options can be used in order to add ‘n’ blank spaces after a given string ‘S’?

Similar Questions

Discover Related MCQs