Advertisement
fkudinov

6. Переклад чисел у слова / Задачі на Python / Острів Ешера

Jul 13th, 2024
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | Source Code | 0 0
  1. # ---------    tasks/escher_tasks/task_6__secret_room.py   ------
  2.  
  3.  
  4. def secret_room(number):
  5.     return 1
  6.  
  7.  
  8.  
  9. # -------    tests/test_escher_tasks/test_task_6__secret_room.py   ------
  10.  
  11. from tasks.escher_tasks.task_6__secret_room import secret_room
  12.  
  13.  
  14. def test_secret_room():
  15.     assert secret_room(5) == 1  # five, four, one, three, two
  16.     assert secret_room(3) == 2  # one, three, two
  17.     assert secret_room(1000) == 551
  18.  
Tags: checkio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement