Examveda

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: Option D


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators