Examveda

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

B. Hello
World 5

C. Hello
World,World,World,World,World

D. Hello
HelloHelloHelloHelloHello

Answer: Option A


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python