Learn Python, step by step
From your first variable to your own Django site. Short lessons, practice questions and a project you build along the way.
def greet(name): return f"Hello, {name}!"print(greet("Python"))
-
1
Line 2:
An f-string puts a value straight into text.
Output Hello, Python!