Skip to content
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

Reto #0 con Python by DamonCDB #31

Merged
merged 4 commits into from
Jan 2, 2023
Merged

Reto #0 con Python by DamonCDB #31

merged 4 commits into from
Jan 2, 2023

Conversation

DamonCDB
Copy link
Contributor

No description provided.

Copy link
Owner

@mouredev mouredev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hola. Revisa las reglas de subida. El nombre del directorio del lenguaje debe estar en minúsculas. Un saludo.

@mouredev mouredev merged commit 68f8002 into mouredev:main Jan 2, 2023
mouredev added a commit that referenced this pull request Jul 31, 2023
ShinMugenNoKabe added a commit to ShinMugenNoKabe/retos-programacion-2023 that referenced this pull request Jul 31, 2023
ShinMugenNoKabe added a commit to ShinMugenNoKabe/retos-programacion-2023 that referenced this pull request Jul 31, 2023
ShinMugenNoKabe added a commit to ShinMugenNoKabe/retos-programacion-2023 that referenced this pull request Jul 31, 2023
kontroldev added a commit to kontroldev/retos-programacion-2023 that referenced this pull request Jul 31, 2023
kontroldev added a commit to kontroldev/retos-programacion-2023 that referenced this pull request Jul 31, 2023
jmmenah added a commit to jmmenah/retos-programacion-2023 that referenced this pull request Jul 31, 2023
s0alken added a commit to s0alken/retos-programacion-2023 that referenced this pull request Jul 31, 2023
Hugovrc added a commit to Hugovrc/retos-programacion-2023 that referenced this pull request Aug 1, 2023
jcdm60 added a commit to jcdm60/retos-programacion-2023 that referenced this pull request Aug 1, 2023
jcdm60 added a commit to jcdm60/retos-programacion-2023 that referenced this pull request Aug 1, 2023
Othamae added a commit to Othamae/retos-programacion-2023 that referenced this pull request Aug 1, 2023
PisanoWP pushed a commit to PisanoWP/retos-programacion-2023 that referenced this pull request Aug 1, 2023
kontroldev added a commit that referenced this pull request Aug 1, 2023
kontroldev added a commit that referenced this pull request Aug 1, 2023
kontroldev added a commit that referenced this pull request Aug 1, 2023
kontroldev added a commit that referenced this pull request Aug 1, 2023
kontroldev added a commit that referenced this pull request Aug 1, 2023
kontroldev added a commit that referenced this pull request Aug 1, 2023
kontroldev added a commit that referenced this pull request Aug 1, 2023
kontroldev added a commit that referenced this pull request Aug 1, 2023
gonsomito added a commit to gonsomito/retos-programacion-2023 that referenced this pull request Aug 1, 2023
En resumen, el código verifica que los elementos de la lista sean válidos, realiza cálculos basados en las condiciones especificadas y devuelve un resultado o mensaje apropiado dependiendo de las circunstancias.

1. Se importa el módulo `re` para trabajar con expresiones regulares.
2. La función `abaco` toma una lista llamada `cuentas` como entrada.
3. Se verifica que cada elemento en la lista contenga solo "O" o "---".
4. Si algún elemento no cumple con la verificación, se devuelve "El ábaco está roto."
5. Si todos los elementos pasan la verificación, se procede a realizar el cálculo del total.
6. Se recorre cada elemento en la lista y se verifica su longitud.
7. Si la longitud es igual a 12, se divide el elemento en trozos utilizando `'---'` como separador.
8. Se agrega la longitud del primer trozo al total.
9. Si la longitud no es igual a 12, significa que el ábaco está roto y se devuelve el mensaje correspondiente.
10. Finalmente, se devuelve el total convertido a entero.
11. Se crea una lista de ejemplo llamada `alambritos`.
12. Se llama a la función `abaco` pasando `alambritos` como argumento e imprime el resultado.
AnNavNicolas added a commit to AnNavNicolas/retos-programacion-2023 that referenced this pull request Aug 1, 2023
Solución reto 31 en java
Roswell468 added a commit that referenced this pull request Aug 1, 2023
Roswell468 added a commit that referenced this pull request Aug 12, 2023
kontroldev added a commit that referenced this pull request Aug 12, 2023
marchdz added a commit to marchdz/retos-programacion-2023 that referenced this pull request Aug 12, 2023
magdielina added a commit to magdielina/retos-programacion-2023 that referenced this pull request Aug 13, 2023
kontroldev added a commit that referenced this pull request Aug 14, 2023
arielposada added a commit to arielposada/retos-programacion-2023 that referenced this pull request Aug 25, 2023
JSilvaH added a commit to JSilvaH/retos-programacion-2023 that referenced this pull request Aug 26, 2023
kontroldev added a commit that referenced this pull request Aug 26, 2023
Retos/Reto #31/kotlin/JSilvaH.kt
Cesar-Ch added a commit to Cesar-Ch/retos-programacion-2023 that referenced this pull request Aug 30, 2023
Roswell468 added a commit that referenced this pull request Aug 30, 2023
kontroldev added a commit that referenced this pull request Sep 13, 2023
flaviovich added a commit to flaviovich/retos-programacion-2023 that referenced this pull request Sep 21, 2023
Roswell468 added a commit that referenced this pull request Sep 22, 2023
marcode24 added a commit to marcode24/retos-programacion-2023 that referenced this pull request Oct 4, 2023
kontroldev added a commit that referenced this pull request Oct 5, 2023
deathwing696 added a commit to deathwing696/retos-programacion-2023 that referenced this pull request Oct 13, 2023
marcoatrs added a commit to marcoatrs/retos-programacion-2023 that referenced this pull request Oct 14, 2023
Roswell468 added a commit that referenced this pull request Oct 15, 2023
patriciotrujilllo added a commit to patriciotrujilllo/retos-programacion-2023 that referenced this pull request Oct 18, 2023
Roswell468 added a commit that referenced this pull request Oct 19, 2023
rokmanhaman added a commit to rokmanhaman/retos-programacion-2023 that referenced this pull request Nov 24, 2023
giovanyosorio added a commit to giovanyosorio/retos-programacion-2023 that referenced this pull request Dec 12, 2023
kontroldev added a commit that referenced this pull request Dec 13, 2023
TiagoAlvarezSchiaffino added a commit to TiagoAlvarezSchiaffino/retos-programacion-2023 that referenced this pull request Dec 26, 2023
treber added a commit to treber/retos-programacion-2023_eberth that referenced this pull request Mar 20, 2024
@treber treber mentioned this pull request Mar 20, 2024
Roswell468 added a commit that referenced this pull request Mar 21, 2024
Javierfiestasbotella added a commit to Javierfiestasbotella/retos-programacion-2023 that referenced this pull request Apr 15, 2024
lc-empty added a commit to lc-empty/retos-programacion-2023 that referenced this pull request Jun 12, 2024
kontroldev added a commit that referenced this pull request Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants