diff options
Diffstat (limited to 'progs/a815.py')
-rw-r--r-- | progs/a815.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a815.py b/progs/a815.py new file mode 100644 index 0000000..1c6dbb1 --- /dev/null +++ b/progs/a815.py @@ -0,0 +1,6 @@ +def loss_amount(actual_cost,sale_amount):
+ if(sale_amount > actual_cost):
+ amount = sale_amount - actual_cost
+ return amount
+ else:
+ return None
\ No newline at end of file |