T

Tanmay • 2.43K Points
Master

Q. What is the output of the following code?

Code:
def sayHello(*name):
  print('Hello', name)

sayHello('Yohan', 'Thomas')
  • (A) Hello Yohan Hello Thomas
  • (B) Hello (‘Yohan’, ‘Thomas’)
  • (C) Hello Yohan
  • (D) Syntax error! sayHello() can only take one argument.
  • Correct Answer - Option(B)
  • Views: 145
  • 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