Vidyalelo
Python · Q46

Formatting and Decorators

Programming · Python · question 46

Q46

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board