Advertisement
Guest User

total_amount

a guest
Jun 19th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. def total_amount(a,b,c,num):
  2.  
  3. #Insert your code below this line
  4.    
  5. result = a * b * c * num * 7
  6.     return result
  7.  
  8. #Do not change the code below this line
  9. def test_total_amount():
  10.     assert total_amount(0, 0, 0, 20) == 0
  11.    
  12.     assert total_amount(1, 1, 1, 0) == 0
  13.  
  14.     assert total_amount(1, 1, 1, 20) == 140
  15.    
  16.     assert total_amount(1, 2, 3, 100) == 4200
  17.    
  18.     print ("test passed")
  19.  
  20. test_total_amount()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement