R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which of the following is the correct way to return multiple values?

  • (A) return 1, 2
  • (B) return [1, 2]
  • (C) return (1, 2)
  • (D) All of the above
  • Correct Answer - Option(D)
  • Views: 14
  • Filed under category Python
  • Hashtags:

Explanation by: Ram Sharma
All of these return multiple values: as tuple (implicit or explicit), or a list.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.