Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jetbrains-academy/introduction_to_python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: konstantin/version-28-update
Choose a base ref
...
head repository: jetbrains-academy/introduction_to_python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 10 commits
  • 4 files changed
  • 3 contributors

Commits on Jul 31, 2024

  1. Merge pull request #235 from jetbrains-academy/konstantin/version-28-…

    …update
    
    Update version after marketplace publication
    kochaika authored Jul 31, 2024
    Copy the full SHA
    74e8cf8 View commit details

Commits on Nov 15, 2024

  1. Added a more detailed task description

    kochaika committed Nov 15, 2024
    Copy the full SHA
    f4a796c View commit details

Commits on Nov 20, 2024

  1. Fixes after proofreading

    kochaika committed Nov 20, 2024
    Copy the full SHA
    b1f2c47 View commit details

Commits on Dec 19, 2024

  1. Merge pull request #243 from jetbrains-academy/konstantin/fix-edc-1140

    Added a more detailed task description
    kochaika authored Dec 19, 2024
    Copy the full SHA
    04f8636 View commit details
  2. Update a version to v29 after uploading to MP

    kochaika committed Dec 19, 2024
    Copy the full SHA
    3e5c273 View commit details
  3. Merge pull request #244 from jetbrains-academy/konstantin/update-mp-v29

    Update a version to v29 after uploading to MP
    kochaika authored Dec 19, 2024
    Copy the full SHA
    9dd2b68 View commit details

Commits on Feb 27, 2025

  1. Update course-info.yaml

    sofiiako authored Feb 27, 2025
    Copy the full SHA
    45f0959 View commit details
  2. Update course-info.yaml

    sofiiako authored Feb 27, 2025
    Copy the full SHA
    951e9ed View commit details
  3. Update course description

    Update description
    sofiiako authored Feb 27, 2025
    Copy the full SHA
    bc81b16 View commit details
  4. Update README.md

    sofiiako authored Feb 27, 2025
    Copy the full SHA
    80a3aee View commit details
Showing with 10 additions and 8 deletions.
  1. +6 −3 Condition expressions/Single-line if-else statement/task.md
  2. +2 −3 README.md
  3. +1 −1 course-info.yaml
  4. +1 −1 course-remote-info.yaml
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).
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Introduction to Python course (JetBrains Academy version) [![official JetBrains project](http://jb.gg/badges/official.svg)](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
2 changes: 1 addition & 1 deletion course-info.yaml
Original file line number Diff line number Diff line change
@@ -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 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>
2 changes: 1 addition & 1 deletion course-remote-info.yaml
Original file line number Diff line number Diff line change
@@ -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