Editor

A Function for Sale Prices

Rearrange the lines · Intermediate · about 5 min

A sale takes a percent off each price. This program writes a function for that once, then uses it for a pair of shoes and a bag. Its lines are mixed up: put them back in an order that prints exactly the output below. Each line keeps its indentation, so you only choose the order.

Example

In the right order, the program prints:

Shoes: 1500.0
Bag: 720.0
Total: 2220.0

Your program

0 of 8 placed

Add the first line from the blocks.

Blocks

8 blocks still to place
The solution opens after your first Check.