PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Blog available for sell
This blog is available for sale. Please 'contact us' if interested.
Advertise with us
Python Multiple Choice Questions
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)
Show Answer
Next Question
Correct Answer:
D
Explanation: In order to add 'n' blank spaces after a given string 'S', we use the formatting option:("%-ns"%S).
© 2024-2025 Python Circle
Contact
Sponsor
Archive
Sitemap