Tag: Tools
-
Python Quizs Question and Answers – Advanced Formatting Tools
Q 1. The formatting method {1:<10} represents the ___________ positional argument, _________ justified in a 10 character wide field.A. first, rightB. second, leftC. first, leftD. second, right Show Answer Answer:-B. second, left Explanation The formatting method {1:>> ‘%s’ %((1.23,),). Q 10. What will be the output of the following two codes? i. ‘{0}’.format(4.56) ii. ‘{0}’.format([4.56,])…