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/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ La razón de separar esto en un tipo aparte: el ordenador necesita guardar los v

En el nivel básico basta con recordar: los números enteros hacen falta cuando no hay fracciones, y los de punto flotante cuando sí las hay. Más adelante en el curso los veremos en detalle.

## Qué es el resto de la división (`%`)
## Qué es el resto de la división (%)

Esta operación se llama **tomar el resto de la división**. Muestra **qué "queda"** cuando un número se divide por otro _no del todo_. Un ejemplo:

Expand Down
2 changes: 1 addition & 1 deletion modules/20-arithmetics/20-basic/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ print(7 / 2) # => 3.5

На базовом уровне достаточно помнить: целые числа нужны, когда нет дробей, а числа с плавающей точкой нужны, когда дроби есть. Подробнее мы разберемся с ними дальше по курсу.

## Что такое остаток от деления (`%`)
## Что такое остаток от деления (%)

Эта операция называется **взятие остатка от деления**. Она показывает, **что "остается"**, когда одно число делится на другое _не полностью_. Пример:

Expand Down
6 changes: 3 additions & 3 deletions modules/25-strings/15-escape-characters/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ El resultado será este.
- Aaaarrrgh!
```

## ¿Qué es `\n`?
## ¿Qué es \n?

`\n` es una secuencia de control (en inglés escape sequence, a veces se dice «secuencia escapada»). Denota un salto de línea, pero no se muestra directamente. No verás `\n` en la salida del programa, ya que solo influye en la disposición del texto.

Expand All @@ -39,7 +39,7 @@ En los editores de texto, al pulsar Enter se añade el carácter invisible LF (L

Las impresoras, los editores y los intérpretes de Python entienden `\n` como la orden de empezar el texto en una línea nueva.

## Ejemplos de uso de `\n`
## Ejemplos de uso de \n

Así procesa Python la secuencia de control `\n`.

Expand Down Expand Up @@ -89,7 +89,7 @@ First line
Second line
```

## Cómo mostrar el propio carácter `\n`
## Cómo mostrar el propio carácter \n

`\n` en Python es una secuencia de control. Controla la disposición del texto y no se muestra en la pantalla como los caracteres normales. Si necesitas mostrar precisamente los caracteres `\` y `n`, y no un salto de línea, hay que escaparlos. Para eso, antes de la barra invertida se añade otra barra.

Expand Down
6 changes: 3 additions & 3 deletions modules/25-strings/15-escape-characters/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ print("- Are you hungry?\n- Aaaarrrgh!")
- Aaaarrrgh!
```

## Что такое `\n`?
## Что такое \n?

`\n` является управляющей последовательностью (англ. escape sequence, иногда говорят "экранированная последовательность"). Она обозначает перевод строки, но не отображается напрямую. Вы не увидите `\n` в выводе программы, так как она влияет только на расположение текста.

Expand All @@ -39,7 +39,7 @@ print("- Are you hungry?\n- Aaaarrrgh!")

Принтеры, редакторы и интерпретаторы Python понимают `\n` как команду начать строку с новой строки.

## Примеры использования `\n`
## Примеры использования \n

Вот как Python обрабатывает управляющую последовательность `\n`.

Expand Down Expand Up @@ -89,7 +89,7 @@ First line
Second line
```

## Как вывести сам символ `\n`
## Как вывести сам символ \n

`\n` в Python является управляющей последовательностью. Она управляет расположением текста и не выводится на экран как обычные символы. Если вам нужно вывести именно символы `\` и `n`, а не перевод строки, их нужно экранировать. Для этого перед обратным слешем добавляют еще один слеш.

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 @@ -62,7 +62,7 @@ First we remove the spaces with the `strip()` method, then convert to uppercase
print(format_name(" hexlet ")) # => HEXLET
```

### Code after `return`
### Code after return

When Python reaches the `return` statement, the function stops executing. Everything written after it inside the function **will not be executed**:

Expand Down
2 changes: 1 addition & 1 deletion modules/40-define-functions/150-return/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Primero quitamos los espacios con el método `strip()`, después pasamos a mayú
print(format_name(" hexlet ")) # => HEXLET
```

### Código después de `return`
### Código después de return

Cuando Python llega al operador `return`, la ejecución de la función se detiene. Todo lo que esté escrito después de él dentro de la función **no se ejecutará**:

Expand Down
2 changes: 1 addition & 1 deletion modules/40-define-functions/150-return/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def format_name(name):
print(format_name(" hexlet ")) # => HEXLET
```

### Код после `return`
### Код после return

Когда Python доходит до оператора `return`, выполнение функции останавливается. Все, что написано после него внутри функции, **не будет выполнено**:

Expand Down
4 changes: 2 additions & 2 deletions modules/45-logic/25-logical-operators/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ print(is_good_apartment(80, "Main Street")) # => True

The area of mathematics in which logical operators are studied is called Boolean algebra. Below you will see **true tables** - you can use them to determine what the result will be if you apply the operator:

#### `and`
#### and

| A | B | A and B |
| ----- | ----- | -------- |
Expand All @@ -69,7 +69,7 @@ The area of mathematics in which logical operators are studied is called Boolean
| False | True | False |
| False | False | False |

#### `or`
#### or

| A | B | A or B |
| ----- | ----- | -------- |
Expand Down
4 changes: 2 additions & 2 deletions modules/45-logic/25-logical-operators/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ print(is_good_apartment(80, "Main Street")) # => True

El área de las matemáticas en la que se estudian los operadores lógicos se llama álgebra booleana. Las **tablas de verdad** muestran cuál será el resultado al aplicar cada operador.

#### Y `and`
#### Y and

| A | B | A and B |
| ----- | ----- | -------- |
Expand All @@ -77,7 +77,7 @@ El área de las matemáticas en la que se estudian los operadores lógicos se ll
| False | True | False |
| False | False | False |

#### O `or`
#### O or

| A | B | A or B |
| ----- | ----- | -------- |
Expand Down
4 changes: 2 additions & 2 deletions modules/45-logic/25-logical-operators/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ print(is_good_apartment(80, "Main Street")) # => True

Область математики, в которой изучаются логические операторы, называется булевой алгеброй. **Таблицы истинности** показывают, каким будет результат при применении каждого оператора.

#### И `and`
#### И and

| A | B | A and B |
| ----- | ----- | -------- |
Expand All @@ -77,7 +77,7 @@ print(is_good_apartment(80, "Main Street")) # => True
| False | True | False |
| False | False | False |

#### ИЛИ `or`
#### ИЛИ or

| A | B | A or B |
| ----- | ----- | -------- |
Expand Down
2 changes: 1 addition & 1 deletion modules/50-loops/80-for-in-range/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ print(sum) # => 45

The first example uses `while`, which keeps running until `i < 10`. The second uses `for` and iterates from 0 to 9 using `range()`. Both do the same thing: add the numbers from 0 to 9 to the `sum` variable, but they use different ways to iterate.

## The `range()` function
## The range() function

The range function in Python is a built-in function that creates a sequence of numbers within a specific range. It can be used in a for loop to control the number of iterations.

Expand Down
Loading