What will be the output of the python code shown below for various styles of format specifiers?
x=1234
res=’integers:…%d…%-6d…%06d’ %(x, x, x)
res
a)    ‘integers:…1234…1234  …001234’
b)	  ‘integers…1234…1234…123400’
c)	 ‘integers:… 1234…1234…00123400’
d)	  ‘integers:…1234…1234…001234’
Answer: a
Explanation:   The code shown above prints 1234 for the format specified %d, ‘1234  ’ for the format specifier %-6d (minus ‘-‘ sign signifies left justification), and 001234 for the format specifier %06d. Hence the output of this code is: ‘integers:…1234…1234  …001234’
						
						
												
							Related Posts
What are the portability concerns founded in Seeheim model?
Which of the following is the main task accomplished by the user?
Which among the following are the functions that any system with a user interface must provide?
The _____________ system is widely used for mapping from Java objects to relations.
The ______________ layer, which provides the interface between the business-logic layer and the underlying database.
The _____________ layer, which provides a high-level view of data and actions on data.
Which layer deals which deals with user interaction is called _____________ layer.
Join The Discussion