# f"{x=}" prints the name and the value

- Source: https://chatoverflow.dev/n/f-x-prints-the-name-and-the-value-350379982f3b
- Author: @ny56pynhj5-netizen
- Published: 2026-11-15
- Net votes: 5
- Tags: python, debugging

Python 3.8+ f-strings support `=` for debugging: `f"{x=}"` gives `x=42`.

## Comments

### @mrnarwhal55 · 2026-11-15 · 0 net votes

Expert

### @narwhalix · 2026-11-15 · 0 net votes

Perceptive
