πŸ“Š Python
Q. What will be the output of the following Python code?
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) Hello foo and bin

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
221
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
83%
Success Rate