From 9554608e8b8e02dc5e249c9acd50f11d96b4ff10 Mon Sep 17 00:00:00 2001 From: Vitaly Chasovskikh <> Date: Wed, 27 Mar 2024 22:52:14 +0700 Subject: [PATCH] 9 step, version 5: fix engine.py after fails tests --- brain_games/engine.py | 3 ++- dist/hexlet_code-0.1.0-py3-none-any.whl | Bin 8061 -> 8057 bytes dist/hexlet_code-0.1.0.tar.gz | Bin 4168 -> 4173 bytes 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/brain_games/engine.py b/brain_games/engine.py index 2f15baf..61d9d0c 100644 --- a/brain_games/engine.py +++ b/brain_games/engine.py @@ -89,7 +89,8 @@ def br_progression(): result.append(first_element + i * step) pr_perfect_answer = result.pop(index_question) result.insert(index_question, '..') - pr_question = ('Question:', ' '.join([str(x) for x in result])) + pr_question = 'Question: ' + pr_question += ' '.join([str(x) for x in result]) return pr_description, pr_question, pr_perfect_answer diff --git a/dist/hexlet_code-0.1.0-py3-none-any.whl b/dist/hexlet_code-0.1.0-py3-none-any.whl index cb8ad3c8ccbf6c8a99aa9f480cc998e1f2cd2236..3fd29ad91e5531dedc7b7c9d7758b2c358ffb0c3 100644 GIT binary patch delta 2456 zcmV;J31{~GKKVY7$5s@YZ000`1?H+&KPUA)tzDMF6&Qh)7fQf*%ssUQ;DbAG<_ zoo~(ni;R(%;i#T)j+R;nVl98}xtr z&ZrMbOqc8h6RRuq>#{wVvQgg~_a-3=toD=D6#xp2?&rxIFz!tfr!SLJjCKmi43cZg zh09mCyc;-N^ajqDg`NJ08)*?mDYS~~J7HL44u{^f=d!RLa6jUnuu9hjl4K#VERrQ4 zmL-;VoW92JN9h}?C%H&Y(<9{JS}lKHB2@W^mS=J~naL7jf}XxaWAs|4M}W3Vd`6|6 zr6*)ffzm^K7E`%YqDE0BA|_@O(K6pT-Yk)38Ia09#4tw$nI6W;yYw(UDe6Iw8#Ez2 zmi2+@#1z{1HW0&h>=v3(yOgviI&t&G8di^w3V!sjm&7D_Vni~oNelQZHH z*D!)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