Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) } and {1}".format('foo', 'bin'))

(A) hello foo and bin
(B) hello {0} and {1} foo bin
(C) error
(D) hello 0 and 1
Correct answer : Option (A) - hello foo and bin

Explanation:
 the numbers 0 and 1 represent the position at which the strings are present.

Share

Discusssion

Login to discuss.