In a way that matches what you describe, using modern Python as an example, the prompt is equivalent to:
dependencies = [“foo”]
$ wc -l uv.lock 245