From f4a796cdb080e28191aa3a4d03c9f38cd735548a Mon Sep 17 00:00:00 2001 From: Konstantin Chaika <pro100kot14@gmail.com> Date: Fri, 15 Nov 2024 13:15:05 +0400 Subject: [PATCH 1/6] Added a more detailed task description --- .../Single-line if-else statement/task.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Condition expressions/Single-line if-else statement/task.md b/Condition expressions/Single-line if-else statement/task.md index 944a40b..7b883da 100644 --- a/Condition expressions/Single-line if-else statement/task.md +++ b/Condition expressions/Single-line if-else statement/task.md @@ -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, program should print `my_random_number` itself. +- Otherwise, print 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). \ No newline at end of file From b1f2c47c966ede3da3e24279ad4a1793b1e56bfd Mon Sep 17 00:00:00 2001 From: Konstantin Chaika <pro100kot14@gmail.com> Date: Wed, 20 Nov 2024 19:12:59 +0400 Subject: [PATCH 2/6] Fixes after proofreading --- Condition expressions/Single-line if-else statement/task.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Condition expressions/Single-line if-else statement/task.md b/Condition expressions/Single-line if-else statement/task.md index 7b883da..f010ac6 100644 --- a/Condition expressions/Single-line if-else statement/task.md +++ b/Condition expressions/Single-line if-else statement/task.md @@ -3,7 +3,7 @@ As you saw in the previous tasks, a simple `if-else` statement can in fact be wr ### 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, program should print `my_random_number` itself. -- Otherwise, print message `"Too small!"`. +- 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). \ No newline at end of file From 3e5c2733881c4800c342bb02c8d36756391e6818 Mon Sep 17 00:00:00 2001 From: Konstantin Chaika <pro100kot14@gmail.com> Date: Thu, 19 Dec 2024 12:50:20 +0400 Subject: [PATCH 3/6] Update a version to v29 after uploading to MP --- course-remote-info.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course-remote-info.yaml b/course-remote-info.yaml index a2247d6..34ea659 100644 --- a/course-remote-info.yaml +++ b/course-remote-info.yaml @@ -1,4 +1,4 @@ id: 16630 update_date: "Mon, 25 Oct 2021 07:56:01 UTC" -course_version: 28 +course_version: 29 generated_edu_id: Introduction to Python_JetBrains_Python From 45f09593cfb69fd47924903af1f45c804e15cf9d Mon Sep 17 00:00:00 2001 From: Sofia <19rubisco93@gmail.com> Date: Thu, 27 Feb 2025 14:30:34 +0100 Subject: [PATCH 4/6] Update course-info.yaml --- course-info.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course-info.yaml b/course-info.yaml index 261c34a..3180ad6 100644 --- a/course-info.yaml +++ b/course-info.yaml @@ -2,7 +2,7 @@ type: marketplace title: Introduction to Python language: English summary: |- - <p>This is an introductory Python course by JetBrains Academy. The presented materials are based on the official <a href="https://docs.python.org/3/">Python Documentation</a>. The target audience are the people with little or no experience in programming who would like to start learning Python.</p> + <p>This is an introductory Python course by JetBrains Academy. Python is the leading language used for data analysis, AI, ML, automation, and more. The presented materials are based on the official <a href="https://docs.python.org/3/">Python Documentation</a>. The target audience are the people with little or no experience in programming who would like to start learning Python.</p> <p>In this course, you will learn about the basics, such as variables and operations with them, strings and other data structures, boolean operators, conditions, control flow, and so on. You will try implementing loops, functions, and classes, as well as using parts of your code as imported modules, and working with text files.</p> <p>Have fun and good luck!</p> <p>P.S. Want to contribute? Feel free to send a pull request to this course’s <a href="https://github.com/jetbrains-academy/introduction_to_python">git repo</a>.</p> From 951e9ed97d6441a7ec21a9ec2f9ac5fb2d4d9b7e Mon Sep 17 00:00:00 2001 From: Sofia <19rubisco93@gmail.com> Date: Thu, 27 Feb 2025 15:17:59 +0100 Subject: [PATCH 5/6] Update course-info.yaml --- course-info.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course-info.yaml b/course-info.yaml index 3180ad6..c9fdb8c 100644 --- a/course-info.yaml +++ b/course-info.yaml @@ -2,7 +2,7 @@ type: marketplace title: Introduction to Python language: English summary: |- - <p>This is an introductory Python course by JetBrains Academy. Python is the leading language used for data analysis, AI, ML, automation, and more. The presented materials are based on the official <a href="https://docs.python.org/3/">Python Documentation</a>. The target audience are the people with little or no experience in programming who would like to start learning Python.</p> + <p>This is an introductory Python course by JetBrains Academy. Python is a leading language for data analysis, AI, ML, automation, and more. The presented materials are based on the official <a href="https://docs.python.org/3/">Python Documentation</a>. It is designed for individuals with little to no programming experience who want to start learning Python.</p> <p>In this course, you will learn about the basics, such as variables and operations with them, strings and other data structures, boolean operators, conditions, control flow, and so on. You will try implementing loops, functions, and classes, as well as using parts of your code as imported modules, and working with text files.</p> <p>Have fun and good luck!</p> <p>P.S. Want to contribute? Feel free to send a pull request to this course’s <a href="https://github.com/jetbrains-academy/introduction_to_python">git repo</a>.</p> From 80a3aee0338fb86eb7d29e2ba593f1b0ad445cec Mon Sep 17 00:00:00 2001 From: Sofia <19rubisco93@gmail.com> Date: Thu, 27 Feb 2025 15:23:44 +0100 Subject: [PATCH 6/6] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1587241..c73c059 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Introduction to Python course (JetBrains Academy version) [](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub) -<p>This is an introductory Python course by JetBrains Academy. - The target audience are the people with little or no experience in programming who - would like to start learning Python.</p> + <p>This is an introductory Python course by JetBrains Academy. Python is a leading language for data analysis, AI, ML, automation, and more. The course is designed for individuals with little to no programming experience who want to start learning Python.</p> + <p>In this course, you will learn about the basics, such as variables and operations with them, strings and other data structures, boolean operators, conditions, control