Vidyalelo
Python · Q53

Formatting and Decorators

Programming · Python · question 53

Q53

What will be the output of the following Python code? '%.2f%s' % (1.2345, 99)

A.
'1.2345', '99'
B.
'1.2399'
Answer
C.
'1.234599'
D.
1.23, 99

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board