Vidyalelo
Python · Q178

Functions in Python

Programming · Python · question 178

Q178

What is the output of the following code:def greet(name="User"): print(f"Hello, name!")greet()

A.
Hello, User!
Answer
B.
Hello, name!
C.
Hello, greet!
D.
Hello, {name}!

Answer: Option A

Solution

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