Advertisement
fkudinov

1. Multiply / Вирішуємо задачі на Python CheckIO Українською

Aug 18th, 2023
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. # ---------      tasks/multiply.py        ---------------
  2.  
  3. def mult_two(a, b):
  4.     return a * b
  5.  
  6.  
  7.  
  8.  
  9. # -----------     tests/test_multiply.py    --------------
  10.  
  11. from tasks.multiply import mult_two
  12.  
  13.  
  14. def test_multiply():
  15.     assert mult_two(3, 4) == 12
  16.     assert mult_two(3, 2) == 6
  17.     assert mult_two(1, 0) == 0
  18.     assert mult_two(4, 5) == 20
  19.  
Tags: checkio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement