What will be the output of the following Python code? print(“Hello {0[0]} and {0[1]}”.format((‘foo’, ‘bin’)))
What will be the output of the following Python code?
print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
a. Hello (‘foo’
‘bin’. and (‘foo’
‘bin’.
b. Error
c. Hello foo and bin
d. None of the mentioned