- Notifications
You must be signed in to change notification settings - Fork250
Change the documantation link#48
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Closed
Changes fromall commits
Commits
Show all changes
211 commits Select commitHold shift + click to select a range
f0ac639
Update README.md
hexbreakc5f9a89
Update README.md
hexbreakc90e3d6
Update README.md
hexbreakd8f1327
Merge pull request #11 from hexbreak/patch-3
alesanchezr03d3cad
Merge pull request #10 from hexbreak/patch-2
alesanchezre12fad0
Merge pull request #9 from hexbreak/patch-1
alesanchezr503453a
Update README.md
hexbreak59d2593
Merge pull request #12 from hexbreak/patch-4
alesanchezrc770ba6
badge uploaded
ElviraQDP38a2a4c
Update learn.json
tommygonzalezaf060763
Update .gitpod.yml
tommygonzalezac9b5807
Update .gitpod.Dockerfile
tommygonzalezaaefa296
errores de tipeo
wotanCode7d69489
error de tipeo
wotanCodebe715d3
Error en el código de ejemplo
wotanCodefcfd3c4
Se eliminan líneas innecesarias
wotanCode3a33a03
Update .gitpod.Dockerfile
tommygonzaleza2b9827e
Merge pull request #19 from tommygonzaleza/master
alesanchezrc17c72f
Merge pull request #14 from learnpack/master
alesanchezrd8a5d6a
Merge pull request #15 from wotanCode/patch-1
alesanchezr2ac38ff
Merge pull request #16 from wotanCode/patch-2
alesanchezr61a39ab
Merge pull request #18 from wotanCode/patch-4
alesanchezr5eac136
Merge pull request #17 from wotanCode/patch-3
alesanchezr35689ae
Update .gitpod.Dockerfile
alesanchezrbfcb529
Update learn.json
alesanchezr4411587
finish reviewing instructions
ElviraQDP344f259
Update tests.py
alesanchezr0bdffed
learnpack audit's action added to the repository
tommygonzalezafd83574
Merge pull request #21 from tommygonzaleza/master
alesanchezrb83fcc6
Editor version updated
tommygonzaleza3b6aa7d
Learnpack clean fixed by updating learnpack
tommygonzaleza7977e3a
Merge pull request #22 from tommygonzaleza/editor-version
alesanchezr927ddd0
Update .gitpod.Dockerfile
tommygonzalezaf146094
Merge pull request #23 from tommygonzaleza/learnpack-version
alesanchezr05ef8e3
Update README.es.md
tommygonzaleza5c3914c
Update README.es.md
tommygonzaleza57ec31e
Update README.es.md
tommygonzaleza6f4e342
Update README.es.md
tommygonzaleza4aa1c77
Update README.md
tommygonzaleza74248b2
Merge pull request #20 from ElviraQDP/master
tommygonzalezad443683
coding ide version changed to 1.0.72
tommygonzalezad1c9fbd
Merge pull request #24 from tommygonzaleza/coding-ide-version
alesanchezr8c81706
https://github.com/learnpack/learnpack/issues/512
ElviraQDPdbea562
Update README.md
tommygonzaleza04dbe7e
learnpack clean
ElviraQDP97aafc1
Merge pull request #26 from ElviraQDP/ex6
tommygonzaleza652a4bb
Update learn.json
tommygonzaleza8df11c7
04-Call-a-function
kiddoprod7af871
Merge pull request #27 from kiddopro/04-Call-a-function
tommygonzalezaae4b874
https://github.com/learnpack/learnpack/issues/811
ElviraQDPc4acb50
misspell
ElviraQDP3e0b05a
missing content
ElviraQDP1c2549e
badge added
ElviraQDPa54cb3d
badge
ElviraQDP1c077c5
badge uploaded
ElviraQDPfe87698
Merge pull request #28 from ElviraQDP/readme.es-
tommygonzaleza5b6f91a
the main README´s were changed
Lorenagubaira6fbb75b
Update README.md
alesanchezr223b1bb
Update README.es.md
alesanchezr023c617
Update README.es.md
alesanchezre19bf0c
Update README.md
alesanchezr7463d4b
Merge branch 'master' into main.readme.python
tommygonzaleza69af042
Update README.es.md
tommygonzalezabbc32dc
Update README.es.md
tommygonzalezac914a7b
Merge pull request #29 from Lorenagubaira/main.readme.python
tommygonzalezaac13344
changed ide version
Sadiel0c943a6b
Merge pull request #30 from Sadiel0/ide-version
tommygonzalezacf32917
@learnpack/learnpack
Sadiel071d13bb
Merge pull request #31 from Sadiel0/practice-functions
tommygonzalezaf9be189
changed yml file
Sadiel01eba37a
Merge pull request #32 from Sadiel0/python-functions
tommygonzaleza33169cb
added \s to test to pass when space is added
Sadiel055e51a2
fixed test so it would read print on any line
Sadiel0e93d16f
Merge pull request #35 from Sadiel0/hello-word
tommygonzaleza5b3db32
regex changed to allow many spaces
Sadiel008156f8
Update tests.py
tommygonzaleza6b9ec76
Merge pull request #34 from Sadiel0/array-methods
tommygonzaleza63bac30
test
dsilva065ce2687
Test improved on exercise 05
tommygonzalezaafa6454
Merge pull request #36 from dsilva06/05-Defining-vs-Calling-a-function
tommygonzalezae415cf6
Update README.md
Chadmichaelg5d58b1f
learnpack -v
dsilva064553793
Update .gitpod.Dockerfile
tommygonzaleza800e1dd
Merge pull request #38 from dsilva06/learnpack-version
tommygonzalezaed26fb6
Update .gitpod.Dockerfile
tommygonzaleza3b849b1
“learnpack”
dsilva0647e0606
Merge pull request #39 from dsilva06/learnpack-version
tommygonzalezaebe1894
Update learn.json
kiddoproc6e3b0f
camelCase
kiddopro486b0a3
Merge pull request #40 from kiddopro/properties
tommygonzalezaabf5213
Update learn.json
kiddoprofbc63ce
added solution
UmiKami6554470
Merge pull request #42 from UmiKami/07-lambda-function-two
tommygonzalezaf6f360e
Update learn.json
tommygonzaleza161612a
Update README.md
alesanchezr982566c
Update README.es.md
alesanchezrd4d9605
Update README.es.md
alesanchezr4605639
the footnotes were added
Lorenagubairad09a84c
added sol
UmiKami61a33d7
Merge pull request #41 from kiddopro/properties
alesanchezr5b00b30
Merge pull request #44 from UmiKami/09-Function-parameters
alesanchezr092059b
Merge pull request #37 from Chadmichaelg/patch-1
alesanchezrcbcffc8
Merge pull request #43 from Lorenagubaira/python-functions-programmin…
alesanchezr07512a0
codepaces reference
Lorenagubaira61a98b6
Update .gitpod.Dockerfile
alesanchezrf5f0a1d
Update .gitignore
alesanchezr455bfcb
Create devcontainer.json
alesanchezr22595b4
Merge branch '4GeeksAcademy:master' into python-functions-programming…
Lorenagubairad53186f
the links were updated
Lorenagubairaade2590
the settings.json file was updated
Lorenagubairac3efbe0
Merge pull request #46 from Lorenagubaira/python-functions.set.json
alesanchezrc2adf7b
Merge pull request #45 from Lorenagubaira/python-functions-programmin…
alesanchezrc1680de
increased flexibility of test by adding blank space tolerance
UmiKami2621f89
added solution file
UmiKami46963a8
Merge pull request #50 from UmiKami/04-Call-a-function
alesanchezrfe80228
Update README.md
josemoracardb27c19a
Update README.es.md
josemoracard25aa0c7
Update README.es.md
josemoracardfed4e6f
Update README.md
josemoracard3938ca8
Update learn.json
josemoracard95937fe
Update README.md
josemoracardd4cd0b8
Update README.md
josemoracard86ba89b
Update README.es.md
josemoracard185c68c
Update README.md
josemoracard849627e
Update README.md
josemoracardc8d874b
Update README.es.md
josemoracardfc6cc2c
Update README.es.md
josemoracardbc3b370
Update app.py
josemoracardea6a0e2
Create solution.hide.py
josemoracardd893571
Update solution.hide.py
josemoracard16d9038
Update README.md
josemoracard1a1fec3
Update README.md
josemoracard3d4a114
Update README.es.md
josemoracard1684f58
Create solution.hide.py
josemoracard6040cfd
Update app.py
josemoracardc0891c6
Update README.md
josemoracardc822158
Update README.md
josemoracard42fffee
Update README.md
josemoracard2da7f65
Update README.md
josemoracard772e9e5
Update README.es.md
josemoracard0b953a0
Update app.py
josemoracard9a62da1
Update solution.hide.py
josemoracardbc85b65
Update tests.py
josemoracard221f1d2
Update README.md
josemoracardddff8b1
Update README.md
josemoracard1ab3115
Update README.md
josemoracard6310ba4
Update README.es.md
josemoracard7e81a0a
Update app.py
josemoracard473ab8f
Update solution.hide.py
josemoracard8bfb202
Update tests.py
josemoracarde20ebf2
Added intro video
tommygonzalezab3fbd36
Update README.es.md
josemoracarda96cd35
Update README.es.md
josemoracard117bc32
Update README.md
josemoracardb8b422f
Update README.md
josemoracarde1d8fe2
Update README.es.md
josemoracard4ed8919
Update README.md
josemoracardd006197
Update app.py
josemoracarde158501
Update tests.py
josemoracardf7e459f
Update tests.py
josemoracard0d2ba13
Update tests.py
josemoracard0de3fbf
Create solution.hide.py
josemoracard7877337
Update README.md
josemoracard7c657c2
Update README.md
josemoracard7f5cc84
Update README.es.md
josemoracarda18d892
Update app.py
josemoracard0280a20
Update solution.hide.py
josemoracarddaa03e4
Update tests.py
josemoracard44a898b
Update README.md
josemoracard930f773
Update README.md
josemoracard08490fe
Update README.es.md
josemoracardeaefd88
Update app.py
josemoracard50e2eec
Update test.py
josemoracard114310e
Create solution.hide.py
josemoracard989a756
Update README.md
josemoracardcecf0db
Update README.es.md
josemoracard71fe9b0
Update solution.hide.py
josemoracardaf4d5fd
Update README.es.md
josemoracard91c9d46
Update README.md
josemoracarda5eafd9
Update README.md
josemoracard3f6d997
Update README.md
josemoracard8bfd0bc
Update README.es.md
josemoracard4b35a98
Update solution.hide.py
josemoracard3c02856
Update app.py
josemoracarda229f30
Update README.md
josemoracard355a13a
Update tests.py
josemoracardb681c43
Update README.md
josemoracarda438081
Update README.es.md
josemoracarda2e3553
Merge pull request #51 from josemoracard/jose1-README
alesanchezraba1fda
Merge pull request #52 from josemoracard/jose2-00-welcome
alesanchezr73aeec4
Merge pull request #53 from josemoracard/jose3-05-defining-vs-calling…
alesanchezr3f857d4
Merge pull request #54 from tommygonzaleza/patch-2
alesanchezrb3d24db
Merge pull request #55 from josemoracard/jose4-06-lambda-functions
alesanchezr30ccbe7
Update README.md
josemoracardff4cc7e
Update README.md
josemoracard63202b9
Update README.md
josemoracardcc216be
Update README.es.md
josemoracardde8d27b
Update README.es.md
josemoracarded10076
Update README.md
josemoracardb73c98b
Update README.es.md
josemoracardbb9e11d
Update README.md
josemoracard9084eee
Update README.md
josemoracardfd801fd
Update README.md
josemoracarde2ac839
Update README.es.md
josemoracardf17dff4
cambio de numeros a todo para poner el 00-welcome
josemoracard3b87eca
Merge pull request #56 from josemoracard/jose1-README
alesanchezr704c159
Merge pull request #57 from josemoracard/jose5-folders
alesanchezr3f0fa1e
Update devcontainer.json
Charlytoc5419817
Update learn.json
Charlytocdfaa8ef
ADding videos
Charlytoc2d76d0e
Merge pull request #59 from Charlytoc/master
alesanchezrFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
40 changes: 40 additions & 0 deletions.devcontainer/devcontainer.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/python | ||
{ | ||
"name": "Python 3", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/python:0-3.10", | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": { | ||
"nodeGypDependencies": true, | ||
"version": "16" | ||
} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"workbench.editorAssociations": { | ||
"*.md": "vscode.markdown.preview.editor" | ||
} | ||
}, | ||
"extensions": ["learn-pack.learnpack-vscode"] | ||
} | ||
}, | ||
"onCreateCommand": "pip3 install pytest==6.2.5 pytest-testdox mock && npm i @learnpack/learnpack@2.1.35 -g && learnpack plugins:install @learnpack/python@1.0.0" | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "pip3 install --user -r requirements.txt", | ||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
29 changes: 29 additions & 0 deletions.github/workflows/learnpack-audit.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
name: Learnpack audit | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install @learnpack/learnpack@latest -g | ||
- run: learnpack audit |
3 changes: 3 additions & 0 deletions.gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
28 changes: 26 additions & 2 deletions.gitpod.Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,28 @@ | ||
FROM gitpod/workspace-full:latest | ||
SHELL ["/bin/bash", "-c"] | ||
RUN sudo apt-get update \ | ||
&& sudo apt-get update \ | ||
&& sudo apt-get clean \ | ||
&& sudo rm -rf /var/cache/apt/* /var/lib/apt/lists/* /tmp/* | ||
# That Gitpod install pyenv for me? no, thanks | ||
WORKDIR /home/gitpod/ | ||
RUN rm .pyenv -Rf | ||
RUN rm .gp_pyenv.d -Rf | ||
RUN curl https://pyenv.run | bash | ||
RUN pyenv update && pyenv install 3.10.7 && pyenv global 3.10.7 | ||
RUN pip install pipenv | ||
# remove PIP_USER environment | ||
USER gitpod | ||
RUN if ! grep -q "export PIP_USER=no" "$HOME/.bashrc"; then printf '%s\n' "export PIP_USER=no" >> "$HOME/.bashrc"; fi | ||
RUN echo "" >> $HOME/.bashrc | ||
RUN echo "unset DATABASE_URL" >> $HOME/.bashrc | ||
RUN echo "export DATABASE_URL" >> $HOME/.bashrc | ||
RUN pip3 install pytest==6.2.5 pytest-testdox mock | ||
RUN npm i -g @learnpack/learnpack@2.1.20 && learnpack plugins:install @learnpack/python@1.0.0 |
9 changes: 6 additions & 3 deletions.gitpod.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions.vscode/settings.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"files.autoSave": "afterDelay", | ||
"files.autoSaveDelay": 700, | ||
"editor.minimap.enabled": false, | ||
"workbench.editorAssociations": { | ||
"*.md": "vscode.markdown.preview.editor" | ||
} | ||
} |
84 changes: 84 additions & 0 deletionsREADME.es.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<!-- hide --> | ||
# 🐍 Tutorial y Ejercicios sobre Funciones de Python</h1> | ||
Creado por <a href="https://twitter.com/alesanchezr">@alesanchezr</a> y <a href="https://github.com/4GeeksAcademy/python-functions-programming-exercises/graphs/contributors">otros contribuyentes</a> en <a href="http://4geeksacademy.com/">4Geeks Academy</a> | ||
<a href="https://4geeks.com/interactive-exercise/python-function-exercises"><img height="280" align="right" src="https://raw.githubusercontent.com/4GeeksAcademy/python-lists-loops-programming-exercises/master/python-lp-badge.png"></a> | ||
<!-- endhide --> | ||
Aprende y practica las funciones de Python. Vas a ver los siguientes conceptos: | ||
1. Declarar una función. | ||
2. Llamar a una función. | ||
3. Alcance de una función. | ||
4. Funciones anidadas. | ||
5. Recursividad de funciones y muchos otros conceptos funcionales. | ||
Todo el tutorial es 👆 interactivo, ✅ calificado automáticamente y con 📹 video tutoriales. | ||
Estos ejercicios son colaborativos, ¡te necesitamos! Si encuentras algún error o falta de ortografía, por favor contribuye y repórtalo. | ||
<!-- hide --> | ||
## Instalación en un clic (recomendado) | ||
Puedes empezar estos ejercicios en pocos segundos haciendo clic en: [Abrir en Codespaces](https://codespaces.new/?repo=4GeeksAcademy/python-functions-programming-exercises) (recomendado) o [Abrir en Gitpod](https://gitpod.io#https://github.com/4GeeksAcademy/python-functions-programming-exercises.git). | ||
> Una vez ya tengas abierto VSCode, los ejercicios de LearnPack deberían empezar automáticamente; si esto no sucede, puedes intentar empezar los ejercicios escribiendo este comando en tu terminal: `$ learnpack start` | ||
## Instalación local: | ||
1. Asegúrate de instalar [LearnPack](https://learnpack.co), node.js version 14+ y Python version 3+. Este es el comando para instalar LearnPack: | ||
```bash | ||
$ npm i -g @learnpack/learnpack@2.1.20 && learnpack plugins:install @learnpack/python@1.0.0 | ||
``` | ||
2. Clona o descarga este repositorio en tu ambiente local. | ||
```bash | ||
$ git clone https://github.com/4GeeksAcademy/python-functions-programming-exercises.git | ||
$ cd python-functions-programming-exercises | ||
``` | ||
> Nota: Una vez que termine de descargar, encontrarás la carpeta "exercises" que contiene todos los ejercicios. | ||
3. Comienza el tutorial/ejercicios ejecutando el siguiente comando en la raíz del proyecto: | ||
```bash | ||
$ pip3 install pytest==6.2.5 pytest-testdox mock | ||
$ learnpack start | ||
``` | ||
<!-- endhide --> | ||
## ¿Cómo están organizados los ejercicios? | ||
Cada ejercicio es un pequeño proyecto en Python que contiene los siguientes archivos: | ||
1. **app.py:** representa el archivo de entrada de Python que será ejecutado en el computador. | ||
2. **README.md:** contiene las instrucciones del ejercicio. | ||
3. **test.py:** no tienes que abrir este archivo, contiene los scripts de pruebas del ejercicio. | ||
> Nota: Estos ejercicios tienen calificación automática. Los tests son muy rígidos y estrictos, mi recomendación es que no prestes demasiada atención a los tests y los uses solo como una sugerencia o podrías frustrarte. | ||
## Colaboradores | ||
Gracias a estas personas maravillosas ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): | ||
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribución: (programador) 💻, (idea) 🤔, (build-tests) ⚠️, (pull-request-review) 👀, (build-tutorial) ✅, (documentación) 📖 | ||
2. [Paolo (plucodev)](https://github.com/plucodev), contribución: (bug reports) 🐛, (programador) 💻, (traducción) 🌎 | ||
3. [Marco Gómez (marcogonzalo)](https://github.com/marcogonzalo), contribution: (bug reports) 🐛, (traducción) 🌎 | ||
Este proyecto sigue la especificación [all-contributors](https://github.com/kentcdodds/all-contributors). | ||
¡Todas las contribuciones son bienvenidas! | ||
Este proyecto sigue la especificación [all-contributors](https://github.com/kentcdodds/all-contributors). ¡Todas las contribuciones son bienvenidas! | ||
Este y otros ejercicios son usados para [aprender a programar](https://4geeksacademy.com/es/aprender-a-programar/aprender-a-programar-desde-cero) por parte de los alumnos de 4Geeks Academy [Coding Bootcamp](https://4geeksacademy.com/us/coding-bootcamp) realizado por [Alejandro Sánchez](https://twitter.com/alesanchezr) y muchos otros contribuyentes. Conoce más sobre nuestros [Cursos de Programación](https://4geeksacademy.com/es/curso-de-programacion-desde-cero?lang=es) para convertirte en [Full Stack Developer](https://4geeksacademy.com/es/coding-bootcamps/desarrollador-full-stack/?lang=es), o nuestro [Data Science Bootcamp](https://4geeksacademy.com/es/coding-bootcamps/curso-datascience-machine-learning). |
120 changes: 62 additions & 58 deletionsREADME.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,86 @@ | ||
<!-- hide --> | ||
# 🐍 Python Functions Tutorial and Exercises | ||
By <a href="https://twitter.com/alesanchezr">@alesanchezr</a> and <a href="https://github.com/4GeeksAcademy/python-functions-programming-exercises/graphs/contributors">other contributors</a> at <a href="http://4geeksacademy.com/">4Geeks Academy</a> | ||
<a href="https://4geeks.com/interactive-exercise/python-function-exercises"><img height="280" align="right" src="https://raw.githubusercontent.com/4GeeksAcademy/python-lists-loops-programming-exercises/master/python-lp-badge.png"></a> | ||
<!-- endhide --> | ||
*Estas instrucciones [están disponibles en 🇪🇸 español](https://github.com/4GeeksAcademy/python-functions-programming-exercises/blob/master/README.es.md) :es:* | ||
Learn and practice Python Functions. You will see the following concepts: | ||
1. Declaring a function. | ||
2. Calling a function. | ||
3. Function scopes. | ||
4. Nest functions. | ||
5. Recursive functions and many other functional concepts. | ||
> Note: The entire tutorial is 👆 interactive, ✅ auto-graded and with 📹 video tutorials. | ||
These exercises were built in collaboration, we need you! If you find any bugs or misspellings, please contribute and report them. | ||
<!-- hide --> | ||
## One click installation (recommended): | ||
You can open these exercises in just a few seconds by clicking: [Open in Codespaces](https://codespaces.new/?repo=4GeeksAcademy/python-functions-programming-exercises) (recommended) or [Open in Gitpod](https://gitpod.io#https://github.com/4GeeksAcademy/python-functions-programming-exercises). | ||
> Once you have VSCode open, the LearnPack exercises should start automatically. If exercises don't run automatically you can try typing on your terminal: `$ learnpack start` | ||
## Local Installation | ||
1. Make sure you have [LearnPack](https://learnpack.co) installed, node.js version 14+, and Python version 3+. This is the command to install LearnPack: | ||
```bash | ||
$ npm i -g @learnpack/learnpack@2.1.20 && learnpack plugins:install @learnpack/python@1.0.0 | ||
``` | ||
2. Clone or download this repository in your local environment. | ||
```bash | ||
$ git clone https://github.com/4GeeksAcademy/python-functions-programming-exercises.git | ||
$ cd python-functions-programming-exercises | ||
``` | ||
> Note: Once you finish downloading, you will find an "exercises" folder that contains alltheexercises within. | ||
3. Start the tutorial/exercises by running the following command from the root of the project: | ||
```bash | ||
$ pip3 install pytest==6.2.5 pytest-testdox mock | ||
$ learnpack start | ||
``` | ||
<!-- endhide --> | ||
## How are the exercises organized? | ||
Each exercise is a smallPython application containing the following files: | ||
1. **app.py:** represents the entryPython file that will be executed by the computer. | ||
2. **README.md:** contains exercise instructions. | ||
3. **test.py:** you don't have to open this file, it contains the testing script for the exercise. | ||
> Note: The exercises have automatic grading, but it's very rigid and strict, my recommendation is to not take the tests too serious and use them only as a suggestion, or you may get frustrated. | ||
## Contributors | ||
Thanks to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): | ||
1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribution: (coder) 💻, (idea) 🤔, (build-tests) ⚠️, (pull-request-review) 👀, (build-tutorial) ✅ (documentation) 📖 | ||
2. [Paolo (plucodev)](https://github.com/plucodev), contribution: (bug reports) 🐛, (coder) 💻, (translation) 🌎 | ||
3. [Marco Gómez (marcogonzalo)](https://github.com/marcogonzalo), contribution: (bug reports) :🐛, (translation) 🌎 | ||
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. | ||
Contributions of any kind are welcome! | ||
This and many other exercises are built by students as part of the 4Geeks Academy [Coding Bootcamp](https://4geeksacademy.com/us/coding-bootcamp) by [Alejandro Sánchez](https://twitter.com/alesanchezr) and many other contributors. Find out more about our [Full Stack Developer Course](https://4geeksacademy.com/us/coding-bootcamps/part-time-full-stack-developer), and [Data Science Bootcamp](https://4geeksacademy.com/us/coding-bootcamps/datascience-machine-learning). |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.