p
y
c
h
a
l
l
e
n
g
e
r
Home
Intermediate Python
Strings II
Transform to f-string II
Transform to f-string II
Transform the
message
string into an
f-string
and embed the necessary variables and Python expressions.
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output