Skip to content

fix: prereq-safe задачи в уроках 4-6 + синтаксис if-result (P0.2) - #12

Merged
gon7187 merged 3 commits into
mainfrom
fix/prereq-lessons-4-6
Jul 28, 2026
Merged

fix: prereq-safe задачи в уроках 4-6 + синтаксис if-result (P0.2)#12
gon7187 merged 3 commits into
mainfrom
fix/prereq-lessons-4-6

Conversation

@gon7187

@gon7187 gon7187 commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Уроки 4-6 больше не требуют def/return (урок 7) и списков (урок 8): код-задачи переведены на stdout-тесты. Вопрос if-result переписан синтаксически корректным многострочным if/else. ID/kinds/количество заданий сохранены. pytest: 10 passed. Добавлен регрессионный тест test_lessons_four_to_six_do_not_require_future_topics.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3d73b0ec3f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/content.py
text(
"if-result",
"Что выведет `if 3 > 5: print('да') else: print('нет')`?",
"Что выведет этот код?\n\nif 3 > 5:\n print('да')\nelse:\n print('нет')",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the line breaks in the if-result prompt

When this question is shown in lessons, exams, or practice, questionTemplate() inserts rich(question.prompt) into a normal <div>, and .question-prompt does not preserve whitespace. The browser therefore collapses these newlines and indentation, displaying the code approximately as if 3 > 5: print('да') else: print('нет')—the same invalid one-line syntax this change intends to fix. Render the snippet as a code block or otherwise preserve its whitespace.

Useful? React with 👍 / 👎.

@gon7187
gon7187 force-pushed the fix/prereq-lessons-4-6 branch from 730bfed to e0234ff Compare July 28, 2026 13:40
@gon7187
gon7187 merged commit e287740 into main Jul 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant