Vidyalelo
Python · Q13

Functions in Python

Programming · Python · question 13

Q13

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

A.
Hello, Alice!
Answer
B.
Hello, name!
C.
name
D.
"Hello, {name}!"

Answer: Option A

Solution

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