← All tips

Python: f-strings for readable formatting

pythonbasics

Use f-strings for clarity and speed.

name = 'Ada'
print(f'Hello, {name}!')