📚 tutoriales de python tutorial 1 | tutorial 2
- NOTA HACER LAS PRÁCTICAS MEDIANTE VISUAL STUDIO CODE * 1) Tienes que clonar el repositorio
git clone https://github.com/SocialOplesk/hack_python_1.git
* 2) Instalar los paquetes
pip install -r requirements.txt
* 3) Para validar los hacks
pytest test_hack.py -v (ejecuta todos los test)
pytest test_hack.py::test_hack_1 (ejecuta un test en específico)
pytest test_hack.py::test_hack_3 -v (ejecuta un test en específico)
✔ NOTA: en caso de no reconocer el comando "pytest"
ejecutar el pytest así: python -m pytest test_hack.py -v
| Hacks | Details |
|---|---|
| H-1 | "FOOZIMAN" |
| H-2 | "fooziman" |
| H-3 | "Fooziman" |
| H-4 | "foozimaN" |
| H-5 | "f00z1m@n" |
| H-6 | [0,1,2,3,4,5] |
| H-7 | [5,4,3,2,1,0] |
| H-8 | [3,5,7] |
| H-9 | [1,'@',2,'@',3,'@'] |
| H-10 | ["F","0","0","Z","1","M","@","N"] |
🎬 Cómo resolver el hack y adicional ejecutar el testing, para validar el hack.
text: "fooziman" output => "FOOZIMAN"text: "FOOZIMAN" output => "fooziman"text: "fooziman" output => "Fooziman"text: "fooziman" output => "foozimaN"text: "fooziman" output => "f00z1m@n"loop: for [] output => [0,1,2,3,4,5]loop: while [] output => [5,4,3,2,1,0]list: [1,3,5,7,9] output => [3,5,7]loop: while [1,2,3] ouput => [1,'@',2,'@',3,'@']text: "fooziman" output => ["F","0","0","Z","1","M","@","N"] 
