BugHunt
๐Ÿ› Daily Bug #741A new bug every day ยท Same bug for everyone
pythonType errorEasy

Formatter crashing on valid prices

Time: 0:00

BUG-19B979CEUser Bug Report
Status: Open

Context & Expected Behavior

format_price(amount) should return the amount formatted as a price string, e.g. format_price(5) -> "$5".

Actual Behavior (The Symptom)

Calling format_price(5) crashes with: TypeError: can only concatenate str (not "int") to str.

Hints

This is a type errors bug

Totals that concatenate, sorts that put 10 before 9, comparisons that refuse to run.