diff --git a/modules/20-arithmetics/20-basic/es/README.md b/modules/20-arithmetics/20-basic/es/README.md index 117c54af..d66b4d53 100644 --- a/modules/20-arithmetics/20-basic/es/README.md +++ b/modules/20-arithmetics/20-basic/es/README.md @@ -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: diff --git a/modules/20-arithmetics/20-basic/ru/README.md b/modules/20-arithmetics/20-basic/ru/README.md index 8ebcd987..7523606b 100644 --- a/modules/20-arithmetics/20-basic/ru/README.md +++ b/modules/20-arithmetics/20-basic/ru/README.md @@ -90,7 +90,7 @@ print(7 / 2) # => 3.5 На базовом уровне достаточно помнить: целые числа нужны, когда нет дробей, а числа с плавающей точкой нужны, когда дроби есть. Подробнее мы разберемся с ними дальше по курсу. -## Что такое остаток от деления (`%`) +## Что такое остаток от деления (%) Эта операция называется **взятие остатка от деления**. Она показывает, **что "остается"**, когда одно число делится на другое _не полностью_. Пример: diff --git a/modules/25-strings/15-escape-characters/es/README.md b/modules/25-strings/15-escape-characters/es/README.md index 455b95c4..de2b452b 100644 --- a/modules/25-strings/15-escape-characters/es/README.md +++ b/modules/25-strings/15-escape-characters/es/README.md @@ -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. @@ -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`. @@ -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. diff --git a/modules/25-strings/15-escape-characters/ru/README.md b/modules/25-strings/15-escape-characters/ru/README.md index 784d9ae3..960cdb21 100644 --- a/modules/25-strings/15-escape-characters/ru/README.md +++ b/modules/25-strings/15-escape-characters/ru/README.md @@ -25,7 +25,7 @@ print("- Are you hungry?\n- Aaaarrrgh!") - Aaaarrrgh! ``` -## Что такое `\n`? +## Что такое \n? `\n` является управляющей последовательностью (англ. escape sequence, иногда говорят "экранированная последовательность"). Она обозначает перевод строки, но не отображается напрямую. Вы не увидите `\n` в выводе программы, так как она влияет только на расположение текста. @@ -39,7 +39,7 @@ print("- Are you hungry?\n- Aaaarrrgh!") Принтеры, редакторы и интерпретаторы Python понимают `\n` как команду начать строку с новой строки. -## Примеры использования `\n` +## Примеры использования \n Вот как Python обрабатывает управляющую последовательность `\n`. @@ -89,7 +89,7 @@ First line Second line ``` -## Как вывести сам символ `\n` +## Как вывести сам символ \n `\n` в Python является управляющей последовательностью. Она управляет расположением текста и не выводится на экран как обычные символы. Если вам нужно вывести именно символы `\` и `n`, а не перевод строки, их нужно экранировать. Для этого перед обратным слешем добавляют еще один слеш. diff --git a/modules/40-define-functions/150-return/en/README.md b/modules/40-define-functions/150-return/en/README.md index f0aff731..394531fd 100644 --- a/modules/40-define-functions/150-return/en/README.md +++ b/modules/40-define-functions/150-return/en/README.md @@ -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**: diff --git a/modules/40-define-functions/150-return/es/README.md b/modules/40-define-functions/150-return/es/README.md index 2bc04f00..1063a9ff 100644 --- a/modules/40-define-functions/150-return/es/README.md +++ b/modules/40-define-functions/150-return/es/README.md @@ -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á**: diff --git a/modules/40-define-functions/150-return/ru/README.md b/modules/40-define-functions/150-return/ru/README.md index 3fd9e291..fda5f76a 100644 --- a/modules/40-define-functions/150-return/ru/README.md +++ b/modules/40-define-functions/150-return/ru/README.md @@ -64,7 +64,7 @@ def format_name(name): print(format_name(" hexlet ")) # => HEXLET ``` -### Код после `return` +### Код после return Когда Python доходит до оператора `return`, выполнение функции останавливается. Все, что написано после него внутри функции, **не будет выполнено**: diff --git a/modules/45-logic/25-logical-operators/en/README.md b/modules/45-logic/25-logical-operators/en/README.md index 6df989ca..500d5630 100644 --- a/modules/45-logic/25-logical-operators/en/README.md +++ b/modules/45-logic/25-logical-operators/en/README.md @@ -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 | | ----- | ----- | -------- | @@ -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 | | ----- | ----- | -------- | diff --git a/modules/45-logic/25-logical-operators/es/README.md b/modules/45-logic/25-logical-operators/es/README.md index 50155a87..8b86177e 100644 --- a/modules/45-logic/25-logical-operators/es/README.md +++ b/modules/45-logic/25-logical-operators/es/README.md @@ -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 | | ----- | ----- | -------- | @@ -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 | | ----- | ----- | -------- | diff --git a/modules/45-logic/25-logical-operators/ru/README.md b/modules/45-logic/25-logical-operators/ru/README.md index 78771a69..5c4070fe 100644 --- a/modules/45-logic/25-logical-operators/ru/README.md +++ b/modules/45-logic/25-logical-operators/ru/README.md @@ -68,7 +68,7 @@ print(is_good_apartment(80, "Main Street")) # => True Область математики, в которой изучаются логические операторы, называется булевой алгеброй. **Таблицы истинности** показывают, каким будет результат при применении каждого оператора. -#### И `and` +#### И and | A | B | A and B | | ----- | ----- | -------- | @@ -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 | | ----- | ----- | -------- | diff --git a/modules/50-loops/80-for-in-range/en/README.md b/modules/50-loops/80-for-in-range/en/README.md index 0e0f5f29..e43afbcb 100644 --- a/modules/50-loops/80-for-in-range/en/README.md +++ b/modules/50-loops/80-for-in-range/en/README.md @@ -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.