Strings
2 / 18
EasyOutput prediction

f-string interpolation

What does this code print?

name = "world"
n = 42
print(f"Hello {name}, {n * 2}!")

← → arrow keys to navigate

Sign in to save your progress.

f-string interpolation - Python Strings Quiz | Unnested