Editor

A Bank Account Class

Rearrange the lines · Advanced · about 10 min

This program describes a bank account as a class, with a method to pay money in and one to take it out, then uses one account. Its lines are mixed up: put them back in an order that prints exactly the output below. Each block keeps its indentation, so you only choose the order.

Example

In the right order, the program prints:

Paid in 200 - balance 700
Cannot take out 1000
Took out 300 - balance 400
Meera has 400

Your program

0 of 13 placed

Add the first line from the blocks.

Blocks

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