From 221def9b59a6580ffd01aa42544fe4740d5da32d Mon Sep 17 00:00:00 2001 From: David Ambrozio Date: Wed, 4 Oct 2023 10:55:44 -0300 Subject: [PATCH] Finalizando o desafio --- .../python/davidspader/README.md | 23 +++++++++++++++++++ .../python/davidspader/cubosimples.py | 6 +++++ 2 files changed, 29 insertions(+) create mode 100644 challenges/1-cubo-simples/python/davidspader/README.md create mode 100644 challenges/1-cubo-simples/python/davidspader/cubosimples.py diff --git a/challenges/1-cubo-simples/python/davidspader/README.md b/challenges/1-cubo-simples/python/davidspader/README.md new file mode 100644 index 00000000..8fde3ed8 --- /dev/null +++ b/challenges/1-cubo-simples/python/davidspader/README.md @@ -0,0 +1,23 @@ +# Submissão de Exercicio + +**Exercicio:** 1 - Cubo Simples + +**Nickname:** davidspader + +**Nível Técnico:** Junior + +**Empresa:** + +**Twitter**: https://twitter.com/xsplsh + +**Dificuldade de Resolução:** Baixa + +**Comentários:** + +**Como rodar o desafio**: + +Dentro do diretório do projeto, utilize o comando abaixo: + +```bash +python cubosimples.py 2 +``` diff --git a/challenges/1-cubo-simples/python/davidspader/cubosimples.py b/challenges/1-cubo-simples/python/davidspader/cubosimples.py new file mode 100644 index 00000000..3cfc2e00 --- /dev/null +++ b/challenges/1-cubo-simples/python/davidspader/cubosimples.py @@ -0,0 +1,6 @@ +from sys import argv + +numero = argv[1] +cubo = int(numero) ** 3 + +print(cubo) \ No newline at end of file