P

Parvesh Kanani • 2.84K Points
Extraordinary

Q. What will be the output of following python code?

Code:
print("Hello {0[0]} and {0[1]}".format(('foo', 'bin')))
  • (A) Hello foo and bin
  • (B) Hello (‘foo’, ‘bin’) and (‘foo’, ‘bin’)
  • (C) Error
  • (D) None of the above
  • Correct Answer - Option(A)
  • Views: 171
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics