Examveda

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

A. Hello, User!

B. Hello, name!

C. Hello, greet!

D. Hello, {name}!

Answer: Option A


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python