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.
πŸ’¬ Discuss
βœ… Correct Answer: (B) Hello (‘Yohan’, ‘Thomas’)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
259
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
98%
Success Rate