JJoeven

Exercises / prompt

Format a few-shot block

few_shot(examples) joins lines 'Q: ... / A: ...' for a list of (q, a) pairs. Print the block for two examples.

Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.