You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Condition expressions/Single-line if-else statement/task.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ As you saw in the previous tasks, a simple `if-else` statement can in fact be wr
3
3
### Task
4
4
Rewrite the statement in the code editor so that it
5
5
fits in one line but the results of its execution remain exactly the same:
6
-
- If `my_random_number` is greater than 50, program should print `my_random_number` itself.
7
-
- Otherwise, print message `"Too small!"`.
6
+
- If `my_random_number` is greater than 50, the program should print the value of `my_random_number`.
7
+
- Otherwise, it should print the message `"Too small!"`.
8
8
9
9
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).
0 commit comments