Source Code:
(back to article)
# Formatting with f-string literals name = 'John' age = 30 print(f'Hello, {name}. You are {age} years old.') # Output: "Hello, John. You are 30 years old."
Result:
Report an issue