JJoeven

Exercises / llm

Spend cap

over_cap(spent, next_cost, cap) is True when spent + next_cost would exceed cap. Print for 0.01+0.005 vs cap 0.02, then 0.018+0.005 vs 0.02.

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