2021-01-27 13:33:22 -08:00
# Cómo ayudar con los desafíos de vídeo
2020-10-02 00:28:40 +05:30
2021-01-27 13:33:22 -08:00
Los retos en vídeo son un nuevo tipo de desafío en el currículo de freeCodeCamp.
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
Un desafío de vídeo es una pequeña sección de un curso de vídeo completo sobre un tema en particular. Una página de desafío de vídeo inserta un vídeo de YouTube. Cada página de desafío tiene una única pregunta de selección múltiple relacionada con el vídeo. A user must answer the question correctly before moving on to the next video challenge in the course.
2020-10-02 00:28:40 +05:30
2021-01-27 13:33:22 -08:00
Las páginas de desafío de vídeo son creadas por miembros del equipo freeCodeCamp. Los vídeos de YouTube también son subidos por miembros del equipo freeCodeCamp. Muchos de los desafíos de video todavía no tienen preguntas asociadas con ellos.
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
You can help by creating multiple-choice questions related to video sections and adding the questions to the markdown files for the video challenges.
2020-10-02 00:28:40 +05:30
2021-01-27 13:33:22 -08:00
## Plantilla de desafío
2020-10-02 00:28:40 +05:30
2021-01-27 13:33:22 -08:00
A continuación se muestra una plantilla de cómo se ven los archivos markdown de los desafíos.
2020-10-02 00:28:40 +05:30
````md
---
2021-02-14 14:18:51 -08:00
id: Unique identifier (alphanumerical, MongoDB_id)
title: Challenge Title
2020-10-02 00:28:40 +05:30
challengeType: 11
2021-02-14 14:18:51 -08:00
videoId: 'YouTube videoId for video challenge'
forumTopicId: 12345
2020-10-02 00:28:40 +05:30
---
2021-02-14 14:18:51 -08:00
# --description--
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
Challenge description text, in markdown
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
```html
< div >
example code
< / div >
````
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
# --question--
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
These fields are currently used for the multiple-choice Python challenges.
## --text--
The question text goes here.
## --answers--
Answer 1
---
Answer 2
---
More answers
## --video-solution--
The number for the correct answer goes here.
2020-10-02 00:28:40 +05:30
````
2021-02-14 14:18:51 -08:00
## Creating questions for video challenges
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
### Access the video challenge markdown files
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
You can find the markdown files for video challenges at the following locations in the curriculum:
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
- [Data Analysis with Python Course ](https://github.com/freeCodeCamp/freeCodeCamp/tree/main/curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course )
- [TensorFlow 2.0 Course ](https://github.com/freeCodeCamp/freeCodeCamp/tree/main/curriculum/challenges/english/11-machine-learning-with-python/tensorflow )
- [Numpy Course ](https://github.com/freeCodeCamp/freeCodeCamp/tree/main/curriculum/challenges/english/08-data-analysis-with-python/numpy )
- [How Neural Networks Work Course ](https://github.com/freeCodeCamp/freeCodeCamp/tree/main/curriculum/challenges/english/11-machine-learning-with-python/how-neural-networks-work )
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
Pick a challenge markdown file from the options above.
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
### Skim through the video associated with the challenge and create a multiple-choice question
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
First, find the videoId.
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
Por ejemplo, en el siguiente código de la cabecera de un archivo markdown de desafío de video, el videoId es "nVAaxZ34khk". On GitHub, the information should be laid out in a table format.
2020-10-02 00:28:40 +05:30
````
---
2021-02-14 14:18:51 -08:00
id: 5e9a093a74c4063ca6f7c14d title: Data Analysis Example A challengeType: 11
2020-10-02 00:28:40 +05:30
videoId: nVAaxZ34khk
---
```
2021-02-14 14:18:51 -08:00
Next, access the YouTube video with that `videoId` . The URL for the video will be:
https://www.youtube.com/watch?v=[videoId] (replace `videoId` in the URL with the video's ID - without square brackets)
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
In the example above, the URL is https://www.youtube.com/watch?v=nVAaxZ34khk
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
Skim the YouTube video with that videoId and think of a multiple-choice question based on the content of the video.
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
### Add the question to the markdown file
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
You can add the question locally or using the GitHub interface. Para añadir la pregunta localmente, necesitas [configurar freeCodeCamp localmente ](how-to-setup-freecodecamp-locally.md ). También puede encontrar el archivo en GitHub y hacer clic en el botón Editar para añadir la pregunta directamente en su navegador.
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
If a question has not yet been added to a particular video challenge, it will have the following default question:
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
```md
# --question--
## --text--
Question text
## --answers--
Answer 1
---
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
Answer 2
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
---
More answers
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
## --video-solution--
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
1
2020-10-02 00:28:40 +05:30
```
2021-02-14 14:18:51 -08:00
Add/Update the question text under the part that shows:
2020-10-02 00:28:40 +05:30
```
2021-02-14 14:18:51 -08:00
# --question--
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
## --text--
```
Add/Update answers (`Answer 1` , `Answer 2` , and so on) under `## --answers--` . Make sure to update the number under `## --video-solution--` with the correct answer number. You can add more possible answers using the same format. The question and answers can be surrounded with quotation marks.
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
### Ejemplos de preguntas
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
````md
# --question--
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
## --text--
What does this JavaScript code log to the console?
```js
console.log('hello world');
````
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
## --answers--
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
hello *world*
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
---
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
**hello** world
---
hello world
---
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
## --video-solution--
3
2020-10-02 00:28:40 +05:30
````
2021-02-14 14:18:51 -08:00
````md
# --question--
## --text--
What will print out after running this code:
```py
width = 15
height = 12.0
print(height/3)
2020-10-02 00:28:40 +05:30
````
2021-02-14 14:18:51 -08:00
## --answers--
39
---
4
---
4.0
---
5.0
---
5
## --video-solution--
3 ````
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
For more examples, you can look at the markdown files for the following video course. All the challenges already have questions: [Python for Everybody Course ](https://github.com/freeCodeCamp/freeCodeCamp/tree/main/curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody )
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
## Open a pull request
2020-10-02 00:28:40 +05:30
2021-02-14 14:18:51 -08:00
After creating one or more questions, you can commit the changes to a new branch and [open a pull request ](how-to-open-a-pull-request.md ).