Examveda

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

A. Hello, Alice!

B. Hello, name!

C. name

D. "Hello, {name}!"

Answer: Option A


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python