Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion modules/20-arithmetics/20-basic/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Arithmetic in programming is virtually the same as in school arithmetic.

The code `3 + 4` will make the interpreter add the numbers and find the result. This program will work, but it makes no sense. In fact, we're not really giving the interpreter a command, we're just saying “oi, what's three plus four?” In real life, you need to do more than just tell the interpreter about the mathematical expression on its own.

For example, if you're creating an online store, you can't just ask the interpreter to calculate the cost of items in the shopping cart. You have to ask it to calculate the cost **И** show the price to the buyer.
For example, if you're creating an online store, you can't just ask the interpreter to calculate the cost of items in the shopping cart. You have to ask it to calculate the cost **and** show the price to the buyer.

We need to ask the interpreter to calculate `3 + 4` **AND** give it an order to do something with the result. For example, print it:

Expand Down
2 changes: 1 addition & 1 deletion modules/20-arithmetics/43-float/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ In mathematics there are different kinds of numbers, for example, natural number

The operation of adding two rational numbers suddenly results in an inaccurate calculation. The same result will be given by other programming languages. Such behavior is due to limitations of computing power. The memory capacity, unlike numbers, is finite (an infinite number of numbers requires an infinite amount of memory to store them).

Rational numbers are not lined up in a continuous chain, between *0.1* и *0.2* an infinite set of numbers. Accordingly, a serious problem arises, but how to store rational numbers? This is an interesting question in itself. There are many articles on the Internet devoted to organizing memory in such cases. Moreover, there is a standard which describes how to do this correctly, and an overwhelming number of languages rely on it.
Rational numbers are not lined up in a continuous chain, between *0.1* and *0.2* an infinite set of numbers. Accordingly, a serious problem arises, but how to store rational numbers? This is an interesting question in itself. There are many articles on the Internet devoted to organizing memory in such cases. Moreover, there is a standard which describes how to do this correctly, and an overwhelming number of languages rely on it.

For us, as developers, it is important to understand that operations with floating numbers are inaccurate (this accuracy can be adjusted), which means that when solving problems involving such numbers, it is necessary to resort to special tricks that allow to achieve the necessary accuracy.
2 changes: 1 addition & 1 deletion modules/25-strings/10-quotes/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The definition of a string is quite simple; it's a set of characters. Let us ima

Which of these are strings? In fact, all five of them are:

* С `'Hello'` and `'Goodbye'` everything is obvious, we've already worked with similar constructions and called them strings
* With `'Hello'` and `'Goodbye'` everything is obvious, we've already worked with similar constructions and called them strings
* `'G'` and `' '` — are also strings, but they only have one character each
* `''` — is an empty string, so it has zero characters

Expand Down
2 changes: 1 addition & 1 deletion modules/31-advanced-strings/70-slices/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Slices have a third optional parameter - **extraction step**. By default it is o
```python
value = 'Hexlet'
value[1:5:2] # el
# 1:5 это 'exle'
# 1:5 is 'exle'
# step 2 is every second, that is, 'e' and 'l'
```

Expand Down
4 changes: 2 additions & 2 deletions modules/31-advanced-strings/90-multiline-strings/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@
b = 'B'

# On the left was added f
text = f'''{a} и {b}
text = f'''{a} and {b}

Check notice on line 59 in modules/31-advanced-strings/90-multiline-strings/en/README.md

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] modules/31-advanced-strings/90-multiline-strings/en/README.md#L59

Unpaired symbol: ‘'’ seems to be missing (EN_UNPAIRED_QUOTES) URL: https://languagetool.org/insights/post/punctuation-guide/#what-are-parentheses Rule: https://community.languagetool.org/rule/show/EN_UNPAIRED_QUOTES?lang=en-US Category: PUNCTUATION
Raw output
modules/31-advanced-strings/90-multiline-strings/en/README.md:59:6: Unpaired symbol: ‘'’ seems to be missing (EN_UNPAIRED_QUOTES)
 URL: https://languagetool.org/insights/post/punctuation-guide/#what-are-parentheses 
 Rule: https://community.languagetool.org/rule/show/EN_UNPAIRED_QUOTES?lang=en-US
 Category: PUNCTUATION

Check notice on line 59 in modules/31-advanced-strings/90-multiline-strings/en/README.md

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] modules/31-advanced-strings/90-multiline-strings/en/README.md#L59

Unpaired symbol: ‘'’ seems to be missing (EN_UNPAIRED_QUOTES) URL: https://languagetool.org/insights/post/punctuation-guide/#what-are-parentheses Rule: https://community.languagetool.org/rule/show/EN_UNPAIRED_QUOTES?lang=en-US Category: PUNCTUATION
Raw output
modules/31-advanced-strings/90-multiline-strings/en/README.md:59:8: Unpaired symbol: ‘'’ seems to be missing (EN_UNPAIRED_QUOTES)
 URL: https://languagetool.org/insights/post/punctuation-guide/#what-are-parentheses 
 Rule: https://community.languagetool.org/rule/show/EN_UNPAIRED_QUOTES?lang=en-US
 Category: PUNCTUATION
sitting on a pipe
'''
```

```text
А and B
A and B
sitting on a pipe

```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Some functions are a little different in that they take a variable number of par
max(1, 10, 3) # 10
```

In the above example, the `max()` function finds the maximum value among the passed parameters. To find out how many parameters can be passed to the input, you need to look at the [documentation](https://docs.python.org/3/library/functions.html?highlight=pow#max) этой функции. Там мы увидим такую конструкцию:
In the above example, the `max()` function finds the maximum value among the passed parameters. To find out how many parameters can be passed to the input, you need to look at the [documentation](https://docs.python.org/3/library/functions.html?highlight=pow#max) of this function. There we'll see the following signature:

```python
max(arg1, arg2, *args[, key])
Expand Down
2 changes: 1 addition & 1 deletion modules/40-define-functions/150-return/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Here we don't return a variable. The value in this variable is always returned.

```python
def double_five():
# или return 5 + 5
# or return 5 + 5
result = 5 + 5
return result
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def f(a=5, b=10, c=100):
The default values have one limitation. They must go at the very end of the parameter list. From the syntax point of view, it is impossible to create a function with an optional parameter followed by a mandatory one:

```python
# Такой код завершится с ошибкой
# This code will fail with an error
def f(a=5, b=10, c=100, x):
# And such a
# And this one too
def f(a=5, b=10, x, c=100):

# This code will work
Expand Down
Loading