๐Ÿ“Š Python
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

๐Ÿ‘๏ธ
252
Total Visits
๐Ÿ“ฝ๏ธ
4 y ago
Published
๐ŸŽ–๏ธ
Tanmay
Publisher
๐Ÿ“ˆ
84%
Success Rate