Skip to content

Added a more detailed task description #243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Condition expressions/Single-line if-else statement/task.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## Single-line if-else statement
As you saw in the previous tasks, a simple `if-else` statement can in fact be written as a single line.

As you saw in the previous tasks, a simple `if-else` statement can in fact be written as a single line. Rewrite the statement in the code editor so that it
fits in one line but the results of its execution remain exactly the same.
### Task
Rewrite the statement in the code editor so that it
fits in one line but the results of its execution remain exactly the same:
- If `my_random_number` is greater than 50, the program should print the value of `my_random_number`.
- Otherwise, it should print the message `"Too small!"`.

For more structured and detailed information, you can refer to [this Hyperskill knowledge base page](https://hyperskill.org/learn/step/5932#simple-if-else?utm_source=jba&utm_medium=jba_courses_links).