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
As you saw in the previous tasks, a simple `if-else` statement can in fact be written as a single line.
2
2
3
-
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
4
-
fits in one line but the results of its execution remain exactly the same.
3
+
### Task
4
+
Rewrite the statement in the code editor so that it
5
+
fits in one line but the results of its execution remain exactly the same:
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!"`.
5
8
6
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