Examveda
Examveda

Which of the following is an f-string in Python?

A. f"Hello {name}"

B. "Hello {}".format(name)"

C. "Hello %s" % name

D. format("Hello {}", name)

Answer: Option A


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators