This program should print an order summary, but it crashes with a TypeError.
When you run the starter code, Python stops and shows something like:
TypeError: can only concatenate str (not "int") to str
The + operator joins two strings, but here we're trying to join text with numbers (order_id and item_count are integers). Python won't guess what you mean, so it raises an error.
Your task
Fix the last line so the program prints exactly:
Order #42: 3 items
There are two common ways to fix this:
- f-string (recommended): put the variables inside
{ } in an f-string, e.g. f"Order #{order_id}: {item_count} items".
- Convert with
str(): wrap each number, e.g. "Order #" + str(order_id) + ....
Use whichever you prefer — just make the output match exactly, including the # and the spacing.