# `036` Net amount

## 📝 Instructions:

1. Write a function named `net_amount()` that computes the net amount of a bank account based on a transaction log from input. The transaction log format is shown as following:

+ D 100
+ W 200

`D` means deposit while `W` means withdrawal.

## 📎 Example input:

```py
net_amount("D 300 D 300 W 200 D 100")
```

## 📎 Example output:

```py
500
```
