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