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

Solución reto #20 Python #1362

Open
grisales54 opened this issue Sep 30, 2024 · 0 comments
Open

Solución reto #20 Python #1362

grisales54 opened this issue Sep 30, 2024 · 0 comments

Comments

@grisales54
Copy link

`"""/*

  • Crea una función que reciba días, horas, minutos y segundos (como enteros)
  • y retorne su resultado en milisegundos.
    */
    """

def milisegundos(dias, hora, minutos, segundo):

total_horas = (dias * 24) + hora
total_minutos = (total_horas * 60) + minutos
total_segundos = (total_minutos * 60) + segundo
milisegundos = total_segundos * 10 ** (3)

return milisegundos

print(milisegundos(3, 2, 54, 5))`

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

No branches or pull requests

1 participant