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