Q. What will be the output of following python code?
Code:print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
β
Correct Answer: (A)
Hello foo and bin
print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
You must be Logged in to update hint/solution