Vidyalelo
Python · Q128

Functions in Python

Programming · Python · question 128

Q128

What will be the output of the following Python code? def say(message, times = 1): print(message * times) say('Hello') say('World', 5)

A.
Hello
WorldWorldWorldWorldWorld
Answer
B.
Hello
World 5
C.
Hello
World,World,World,World,World
D.
Hello
HelloHelloHelloHelloHello

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board