Sail E0 Webinar
Question
Which of the following formatting options can be used in order to add 'n' blank spaces after a given string 'S'?
Options:
A .  print(-ns"%S)
B .  print(-ns"%S)
C .  print(%ns"%S)
D .  print(%-ns"%S)
Answer: Option B


In order to add 'n' blank spaces after a given string 'S', we use the formatting option:("%-ns%S).



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers