Skip to content

remove replit #340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025
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
1 change: 0 additions & 1 deletion drafts/25-strings/15-escape-characters/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,4 @@ definitions:
description: "a special combination of characters in text. For example, \\n — is a line feed."

tips:
- Be sure to experiment with printing different strings on the site [https://replit.com/languages/python3](https://replit.com/languages/python3)
- "[Line feed history](https://en.wikipedia.org/wiki/Newline)"
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ theory: |
print(who)
```

This code will display the string `dragon's mother`. If you want to check it yourself, run the code on [repl.it](https://replit.com/languages/python3) and experiment with it.

Variables can be used to write even more complex calculations. Now, back to our currency program. Let's write the dollar value in rubles as a separate variable. Let's calculate the value of 50 euros in dollars by multiplying it by `1.25`. Suppose that 1 dollar is 60 rubles:

```python
Expand Down
6 changes: 1 addition & 5 deletions drafts/45-logic/90-logical-expressions/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ theory: |
print(somefunc() and 'yes' or 'no')
```

You can check yourself and experiment with the code in [Replit](https://replit.com/@hexlet/python-basics-logical-expressions).

## Double Negation

Recall what the operation of negation looks like:
Expand Down Expand Up @@ -137,7 +135,7 @@ theory: |
value == ('first' or 'second')
```

However, such a code will lead to the wrong result. It is necessary to remember the priority of operations. The first thing is to calculate everything specified in brackets - `'first' or ` second'`. If you execute this code in Replit, the output will be as follows:
However, such a code will lead to the wrong result. It is necessary to remember the priority of operations. The first thing is to calculate everything specified in brackets - `'first' or ` second'`.

```bash
python
Expand Down Expand Up @@ -178,8 +176,6 @@ instructions: |
isinstance(3, str) # False
isinstance('Hexlet', str) # True
```

Experiment with the code in the interactive replay https://replit.com/@hexlet/python-basics-logical-expressions

# tips:
# - |
Expand Down
2 changes: 0 additions & 2 deletions drafts/50-loops/28-build-string/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ theory: |
* `index = index - 1` - update the counter
* `return reversed_string` - when the loop is done, return the result string

We advise you to copy this function into the REPL [https://replit.com/languages/python3](https://replit.com/languages/python3) and experiment with it a little.

When working with strings, programmers often make the mistake of going past string boundaries. If a wrong initial counter value is chosen or a mistake is made in a loop predicate, the function may access a character that doesn't exist.

It's also extremely often forgotten that the index of the last element is always one less than the size of the string. In strings, the initial index is `0`, so the index of the last element is `len(str) - 1`.
Expand Down
2 changes: 0 additions & 2 deletions drafts/50-loops/70-for/description.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ theory: |
chars_count('hexlet!', 'a') # 0
```

# We suggest experimenting with the examples above in the interactive [Replit](https://replit.com/@hexlet/python-basics-for-loop#main.py).

instructions: |

In a previous lesson, we already wrote the `filter_string()` function. Recall that it takes a string and a character as input and returns a new string in which the passed character at all its positions is removed. This time, implement this function using the `for` loop. An additional condition: the case of the character to be eliminated does not matter.
Expand Down
1 change: 0 additions & 1 deletion modules/10-basics/30-instructions/description.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ theory: |
# => Dracarys!
```

https://replit.com/@hexlet/python-basics-instructions

Anteriormente hemos señalado que las instrucciones se separan por saltos de línea. Pero también hay otra forma: se pueden separar por punto y coma (`;`):

Expand Down
1 change: 0 additions & 1 deletion modules/10-basics/30-instructions/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ print('Dracarys!')
# => Dracarys!
```

https://replit.com/@hexlet/python-basics-instructions

Anteriormente hemos señalado que las instrucciones se separan por saltos de línea. Pero también hay otra forma: se pueden separar por punto y coma (`;`):

Expand Down
1 change: 0 additions & 1 deletion modules/10-basics/50-syntax-errors/description.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ theory: |
print('Hodor)
```

https://replit.com/@hexlet/python-basics-syntax-errors

Si ejecutamos el código anterior, veremos el siguiente mensaje:

Expand Down
1 change: 0 additions & 1 deletion modules/10-basics/50-syntax-errors/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Aquí hay un ejemplo de código con un error de sintaxis:
print('Hodor)
```

https://replit.com/@hexlet/python-basics-syntax-errors

Si ejecutamos el código anterior, veremos el siguiente mensaje:

Expand Down
1 change: 0 additions & 1 deletion modules/20-arithmetics/20-basic/description.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ theory: |
print(3 ** 2) # => 9
```

https://replit.com/@hexlet/python-basics-arithmetics-basics

A veces, para mayor comodidad, mostraremos el resultado de ejecutar líneas de código de esta manera en los comentarios: `=> RESULTADO`. Por ejemplo, `# => 4`.

Expand Down
1 change: 0 additions & 1 deletion modules/20-arithmetics/20-basic/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ print(8 / 2) # => 4.0 (Al dividir dos números, el tipo de dato resultante es
print(3 ** 2) # => 9
```

https://replit.com/@hexlet/python-basics-arithmetics-basics

A veces, para mayor comodidad, mostraremos el resultado de ejecutar líneas de código de esta manera en los comentarios: `=> RESULTADO`. Por ejemplo, `# => 4`.

Expand Down
1 change: 0 additions & 1 deletion modules/20-arithmetics/30-composition/description.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ theory: |
print(2 * 4 * 5 * 10)
```

https://replit.com/@hexlet/python-basics-arithmetics-composition

Las operaciones se pueden combinar entre sí y calcular expresiones compuestas más complejas. Para comprender cómo se realizan los cálculos dentro del intérprete, analicemos el ejemplo: `2 * 4 * 5 * 10`.

Expand Down
1 change: 0 additions & 1 deletion modules/20-arithmetics/30-composition/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Veamos un ejemplo:
print(2 * 4 * 5 * 10)
```

https://replit.com/@hexlet/python-basics-arithmetics-composition

Las operaciones se pueden combinar entre sí y calcular expresiones compuestas más complejas. Para comprender cómo se realizan los cálculos dentro del intérprete, analicemos el ejemplo: `2 * 4 * 5 * 10`.

Expand Down
1 change: 0 additions & 1 deletion modules/20-arithmetics/40-priority/description.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ theory: |
print(((8 / 2) + 5) - (-3 / 2)) # => 10.5
```

https://replit.com/@hexlet/python-basics-arithmetics-priority

Es importante recordar que el código se escribe para ser entendido por personas. Las personas leerán el código y las máquinas solamente lo ejecutarán. Para las máquinas, el código es correcto o incorrecto. No hay código "más" o "menos" comprensible para ellas.

Expand Down
1 change: 0 additions & 1 deletion modules/20-arithmetics/40-priority/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ print(8 / 2 + 5 - -3 / 2) # => 10.5
print(((8 / 2) + 5) - (-3 / 2)) # => 10.5
```

https://replit.com/@hexlet/python-basics-arithmetics-priority

Es importante recordar que el código se escribe para ser entendido por personas. Las personas leerán el código y las máquinas solamente lo ejecutarán. Para las máquinas, el código es correcto o incorrecto. No hay código "más" o "menos" comprensible para ellas.
1 change: 0 additions & 1 deletion modules/25-strings/15-escape-characters/description.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,4 @@ definitions:
description: "una combinación especial de caracteres en un texto. Por ejemplo, \\n es un salto de línea."

tips:
- Asegúrate de experimentar con la impresión de diferentes cadenas en el sitio [https://replit.com/languages/python3](https://replit.com/languages/python3)
- "[Historia del salto de línea](https://es.wikipedia.org/wiki/Salto_de_l%C3%ADnea#Historia)"
3 changes: 0 additions & 3 deletions modules/25-strings/15-escape-characters/en/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@ definitions:
a special combination of characters in text. For example, \n — is a line
feed.
tips:
- >-
Be sure to experiment with printing different strings on the site
[https://replit.com/languages/python3](https://replit.com/languages/python3)
- '[Line feed history](https://en.wikipedia.org/wiki/Newline)'
3 changes: 0 additions & 3 deletions modules/25-strings/15-escape-characters/es/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ definitions:
una combinación especial de caracteres en un texto. Por ejemplo, \n es un
salto de línea.
tips:
- >-
Asegúrate de experimentar con la impresión de diferentes cadenas en el sitio
[https://replit.com/languages/python3](https://replit.com/languages/python3)
- >-
[Historia del salto de
línea](https://es.wikipedia.org/wiki/Salto_de_l%C3%ADnea#Historia)
3 changes: 0 additions & 3 deletions modules/25-strings/15-escape-characters/ru/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ definitions:
специальная комбинация символов в тексте. Например, \n — это перевод
строки.
tips:
- >-
Обязательно поэкспериментируйте с выводом разных строк на сайте
[https://replit.com/languages/python3](https://replit.com/languages/python3)
- >-
[История перевода
строки](https://ru.wikipedia.org/wiki/Перевод_строки#История)
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ theory: |
print("King's" + ' Landing') # => King's Landing
```

https://replit.com/@hexlet/python-basics-string-concatenation

instructions: |

Expand Down
2 changes: 0 additions & 2 deletions modules/25-strings/20-string-concatenation/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ print("King's " + 'Landing') # => King's Landing
# Colocamos un espacio en blanco en la parte derecha
print("King's" + ' Landing') # => King's Landing
```

https://replit.com/@hexlet/python-basics-string-concatenation
1 change: 0 additions & 1 deletion modules/25-strings/30-encoding/description.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ instructions: |
print(chr(63))
```

https://replit.com/@hexlet/python-basics-string-encoding

Se mostrará en pantalla el carácter con el número 63, que es el signo de interrogación `?`. De esta manera, puedes mostrar cualquier carácter.

Expand Down
1 change: 0 additions & 1 deletion modules/25-strings/30-encoding/es/EXERCISE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ En Python, puedes "solicitar" y mostrar en pantalla cualquier carácter de la co
print(chr(63))
```

https://replit.com/@hexlet/python-basics-string-encoding

Se mostrará en pantalla el carácter con el número 63, que es el signo de interrogación `?`. De esta manera, puedes mostrar cualquier carácter.

Expand Down
1 change: 0 additions & 1 deletion modules/30-variables/10-definition/description.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ theory: |
print(greeting2)
```

https://replit.com/@hexlet/python-basics-variables-definition

Para que el programa sea fácil de leer, los programadores suelen crear variables lo más cerca posible del lugar donde se utilizan. Ahora necesitamos entender cómo modificarlas.

Expand Down
1 change: 0 additions & 1 deletion modules/30-variables/10-definition/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,5 @@ print(greeting2)
print(greeting2)
```

https://replit.com/@hexlet/python-basics-variables-definition

Para que el programa sea fácil de leer, los programadores suelen crear variables lo más cerca posible del lugar donde se utilizan. Ahora necesitamos entender cómo modificarlas.
1 change: 0 additions & 1 deletion modules/30-variables/12-change/description.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ theory: |
print(greeting) # => Mother!
```

https://replit.com/@hexlet/python-basics-variables-change

El nombre se mantiene igual, pero los datos internos han cambiado. Es importante destacar que en Python no es necesario declarar explícitamente las variables. En su lugar, una variable se declara cuando se utiliza por primera vez en el programa.

Expand Down
1 change: 0 additions & 1 deletion modules/30-variables/12-change/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ greeting = 'Mother!'
print(greeting) # => Mother!
```

https://replit.com/@hexlet/python-basics-variables-change

El nombre se mantiene igual, pero los datos internos han cambiado. Es importante destacar que en Python no es necesario declarar explícitamente las variables. En su lugar, una variable se declara cuando se utiliza por primera vez en el programa.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ theory: |
print(who)
```

Este código mostrará en pantalla la cadena de texto `dragon's mother`. Si quieres comprobarlo por ti mismo, ejecuta el código en [repl.it](https://replit.com/languages/python3) y experimenta.

Con variables, puedes realizar cálculos más complejos. Volvamos a nuestro programa de conversión de moneda. Guardemos el valor del dólar en yuanes como una variable separada. Calculemos el precio de 50 euros en dólares multiplicándolos por `1.25`. Supongamos que 1 dólar equivale a 6.91 yuanes:

```python
Expand Down
2 changes: 0 additions & 2 deletions modules/30-variables/15-variables-expressions/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ who = "dragon's " + 'mother'
print(who)
```

This code will display the string `dragon's mother`. If you want to check it yourself, run the code on [repl.it](https://replit.com/languages/python3) and experiment with it.

Variables can be used to write even more complex calculations. Now, back to our currency program. Let's write the dollar value in yuans as a separate variable. Let's calculate the value of 50 euros in dollars by multiplying it by `1.25`. Suppose that 1 dollar is 6.91 yuans:

```python
Expand Down
2 changes: 0 additions & 2 deletions modules/30-variables/15-variables-expressions/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ who = "dragon's " + 'mother'
print(who)
```

Este código mostrará en pantalla la cadena de texto `dragon's mother`. Si quieres comprobarlo por ti mismo, ejecuta el código en [repl.it](https://replit.com/languages/python3) y experimenta.

Con variables, puedes realizar cálculos más complejos. Volvamos a nuestro programa de conversión de moneda. Guardemos el valor del dólar en yuanes como una variable separada. Calculemos el precio de 50 euros en dólares multiplicándolos por `1.25`. Supongamos que 1 dólar equivale a 6.91 yuanes:

```python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ theory: |
print(what) # => Kingsroad
```

https://replit.com/@hexlet/python-basics-variables-concatenation

Las variables son una herramienta importante en la programación. Simplifican cálculos complejos y, por lo tanto, facilitan el desarrollo. Pero para trabajar con variables de manera efectiva, no solo es necesario usarlas correctamente, sino también nombrarlas correctamente. Hablaremos de esto en la próxima lección.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ what = first + last
print(what) # => Kingsroad
```

https://replit.com/@hexlet/python-basics-variables-concatenation

Las variables son una herramienta importante en la programación. Simplifican cálculos complejos y, por lo tanto, facilitan el desarrollo. Pero para trabajar con variables de manera efectiva, no solo es necesario usarlas correctamente, sino también nombrarlas correctamente. Hablaremos de esto en la próxima lección.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ theory: |
print(what_is_it) # => Hexlet - online courses
```

https://replit.com/@hexlet/python-basics-advanced-strings-interpolation

En casi todos los lenguajes de programación, la interpolación es preferible a la concatenación para unir cadenas. La cadena resultante se muestra como una sola unidad, y los espacios y otros caracteres son fácilmente distinguibles dentro de ella.

Expand Down
1 change: 0 additions & 1 deletion modules/31-advanced-strings/25-interpolation/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ what_is_it = f'{school} - online courses'
print(what_is_it) # => Hexlet - online courses
```

https://replit.com/@hexlet/python-basics-advanced-strings-interpolation

En casi todos los lenguajes de programación, la interpolación es preferible a la concatenación para unir cadenas. La cadena resultante se muestra como una sola unidad, y los espacios y otros caracteres son fácilmente distinguibles dentro de ella.

Expand Down
1 change: 0 additions & 1 deletion modules/31-advanced-strings/30-symbols/description.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ theory: |
print(first_name[index]) # => A
```

https://replit.com/@hexlet/python-basics-advanced-strings-symbols

Para mostrar solamente algunos caracteres de una expresión, no es necesario escribir una gran cantidad de líneas de código, simplemente extraiga el elemento utilizando un índice. También puede usar un índice negativo para facilitar la extracción de caracteres desde el final de la expresión. A continuación, veremos cómo usar estos conocimientos para extraer subcadenas de una cadena.

Expand Down
1 change: 0 additions & 1 deletion modules/31-advanced-strings/30-symbols/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,5 @@ index = 0
print(first_name[index]) # => A
```

https://replit.com/@hexlet/python-basics-advanced-strings-symbols

Para mostrar solamente algunos caracteres de una expresión, no es necesario escribir una gran cantidad de líneas de código, simplemente extraiga el elemento utilizando un índice. También puede usar un índice negativo para facilitar la extracción de caracteres desde el final de la expresión. A continuación, veremos cómo usar estos conocimientos para extraer subcadenas de una cadena.
1 change: 0 additions & 1 deletion modules/31-advanced-strings/70-slices/description.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ theory: |
value[start:end] # 'exle'
```

https://replit.com/@hexlet/python-basics-advanced-strings-slices

Resumiendo todo:

Expand Down
1 change: 0 additions & 1 deletion modules/31-advanced-strings/70-slices/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ end = 5
value[start:end] # 'exle'
```

https://replit.com/@hexlet/python-basics-advanced-strings-slices

Resumiendo todo:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ theory: |
print(converted_value5) # => 3
```

https://replit.com/@hexlet/python-basics-data-types-casting

De la misma manera, se pueden convertir datos a cadenas de texto con `str()` y a números de punto flotante con `float()`:

Expand Down
1 change: 0 additions & 1 deletion modules/33-data-types/55-data-types-casting/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ converted_value5 = int(3.5)
print(converted_value5) # => 3
```

https://replit.com/@hexlet/python-basics-data-types-casting

De la misma manera, se pueden convertir datos a cadenas de texto con `str()` y a números de punto flotante con `float()`:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ theory: |
print(name) # => TIRION
```

https://replit.com/@hexlet/python-basics-objects-methods-immutability

instructions: |

Expand Down
2 changes: 0 additions & 2 deletions modules/38-objects/200-methods-immutability/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ name = 'Tirion'
name = name.upper()
print(name) # => TIRION
```

https://replit.com/@hexlet/python-basics-objects-methods-immutability
2 changes: 0 additions & 2 deletions modules/38-objects/200-methods-immutability/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,3 @@ name = 'Tirion'
name = name.upper()
print(name) # => TIRION
```

https://replit.com/@hexlet/python-basics-objects-methods-immutability
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ theory: |
print(num1.bit_length() + num2.bit_length()) # => 8
```

https://replit.com/@hexlet/python-basics-objects-method-expression

instructions: |

Expand Down
2 changes: 0 additions & 2 deletions modules/38-objects/300-method-expressions/es/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ num2 = 30
# bit_length() calcula la cantidad de bits necesarios para representar un número en binario
print(num1.bit_length() + num2.bit_length()) # => 8
```

https://replit.com/@hexlet/python-basics-objects-method-expression
2 changes: 0 additions & 2 deletions modules/38-objects/300-method-expressions/ru/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ num2 = 30
# bit_length() — вычисляет количество бит, необходимых для представления числа в двоичном виде
print(num1.bit_length() + num2.bit_length()) # => 8
```

https://replit.com/@hexlet/python-basics-objects-method-expression
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ theory: |
show_greeting() # => '¡Hola, Hexlet!'
```

https://replit.com/@hexlet/python-basics-define-function

A diferencia de los datos normales, las funciones realizan acciones. Por lo tanto, sus nombres deben indicarse con verbos: "construir algo", "dibujar algo", "abrir algo".

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def show_greeting():
show_greeting() # => '¡Hola, Hexlet!'
```

https://replit.com/@hexlet/python-basics-define-function

A diferencia de los datos normales, las funciones realizan acciones. Por lo tanto, sus nombres deben indicarse con verbos: "construir algo", "dibujar algo", "abrir algo".

Expand Down
Loading