Q:

Output is: print(\"Hello {0[0]} and {0[1]}\".format((\'foo\', \'bin\')))

-2

Output is

print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))

  1. Hello foo and bin
  2. Hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’)
  3. Error
  4. None of the above

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

Hello foo and bin

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now