chore(i18n,curriculum): update translations (#42969)
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: a3f503de51cf954ede28891d
|
id: a3f503de51cf954ede28891d
|
||||||
title: Find the Symmetric Difference
|
title: Trovare la differenza simmetrica
|
||||||
challengeType: 5
|
challengeType: 5
|
||||||
forumTopicId: 301611
|
forumTopicId: 301611
|
||||||
dashedName: find-the-symmetric-difference
|
dashedName: find-the-symmetric-difference
|
||||||
@ -8,77 +8,77 @@ dashedName: find-the-symmetric-difference
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
The mathematical term <dfn>symmetric difference</dfn> (`△` or `⊕`) of two sets is the set of elements which are in either of the two sets but not in both. For example, for sets `A = {1, 2, 3}` and `B = {2, 3, 4}`, `A △ B = {1, 4}`.
|
Il termine matematico <dfn>differenza simmetrica</dfn> (`△` o `⊕`) di due insiemi è l'insieme di elementi che sono in uno dei due insiemi ma non in entrambi. Ad esempio, per gli insiemi `A = {1, 2, 3}` e `B = {2, 3, 4}`, `A △ B = {1, 4}`.
|
||||||
|
|
||||||
Symmetric difference is a binary operation, which means it operates on only two elements. So to evaluate an expression involving symmetric differences among *three* elements (`A △ B △ C`), you must complete one operation at a time. Thus, for sets `A` and `B` above, and `C = {2, 3}`, `A △ B △ C = (A △ B) △ C = {1, 4} △ {2, 3} = {1, 2, 3, 4}`.
|
La differenza simmetrica è un'operazione binaria, il che significa che opera solo su due elementi. Quindi per valutare un'espressione che comporta differenze simmetriche tra *tre* elementi (`A △ B △ C`), è necessario completare un'operazione alla volta. Così, per gli insiemi `A` e `B` di cui sopra, e `C = {2, 3}`, `A △ B △ C = (A △ B) △ C = {1, 4} △ {2, 3} = {1, 2, 3, 4}`.
|
||||||
|
|
||||||
# --instructions--
|
# --instructions--
|
||||||
|
|
||||||
Create a function that takes two or more arrays and returns an array of their symmetric difference. The returned array must contain only unique values (*no duplicates*).
|
Crea una funzione che richiede due o più array e restituisce un array della loro differenza simmetrica. L'array restituito deve contenere solo valori univoci (*nessun duplicato*).
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
`sym([1, 2, 3], [5, 2, 1, 4])` should return `[3, 4, 5]`.
|
`sym([1, 2, 3], [5, 2, 1, 4])` dovrebbe restituire `[3, 4, 5]`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.sameMembers(sym([1, 2, 3], [5, 2, 1, 4]), [3, 4, 5]);
|
assert.sameMembers(sym([1, 2, 3], [5, 2, 1, 4]), [3, 4, 5]);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([1, 2, 3], [5, 2, 1, 4])` should contain only three elements.
|
`sym([1, 2, 3], [5, 2, 1, 4])` dovrebbe contenere solo tre elementi.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.equal(sym([1, 2, 3], [5, 2, 1, 4]).length, 3);
|
assert.equal(sym([1, 2, 3], [5, 2, 1, 4]).length, 3);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([1, 2, 3, 3], [5, 2, 1, 4])` should return `[3, 4, 5]`.
|
`sym([1, 2, 3, 3], [5, 2, 1, 4])` dovrebbe restituire `[3, 4, 5]`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.sameMembers(sym([1, 2, 3, 3], [5, 2, 1, 4]), [3, 4, 5]);
|
assert.sameMembers(sym([1, 2, 3, 3], [5, 2, 1, 4]), [3, 4, 5]);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([1, 2, 3, 3], [5, 2, 1, 4])` should contain only three elements.
|
`sym([1, 2, 3, 3], [5, 2, 1, 4])` dovrebbe contenere solo tre elementi.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.equal(sym([1, 2, 3, 3], [5, 2, 1, 4]).length, 3);
|
assert.equal(sym([1, 2, 3, 3], [5, 2, 1, 4]).length, 3);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([1, 2, 3], [5, 2, 1, 4, 5])` should return `[3, 4, 5]`.
|
`sym([1, 2, 3], [5, 2, 1, 4, 5])` dovrebbe restituire `[3, 4, 5]`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.sameMembers(sym([1, 2, 3], [5, 2, 1, 4, 5]), [3, 4, 5]);
|
assert.sameMembers(sym([1, 2, 3], [5, 2, 1, 4, 5]), [3, 4, 5]);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([1, 2, 3], [5, 2, 1, 4, 5])` should contain only three elements.
|
`sym([1, 2, 3], [5, 2, 1, 4, 5])` dovrebbe contenere solo tre elementi.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.equal(sym([1, 2, 3], [5, 2, 1, 4, 5]).length, 3);
|
assert.equal(sym([1, 2, 3], [5, 2, 1, 4, 5]).length, 3);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([1, 2, 5], [2, 3, 5], [3, 4, 5])` should return `[1, 4, 5]`
|
`sym([1, 2, 5], [2, 3, 5], [3, 4, 5])` dovrebbe restituire `[1, 4, 5]`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.sameMembers(sym([1, 2, 5], [2, 3, 5], [3, 4, 5]), [1, 4, 5]);
|
assert.sameMembers(sym([1, 2, 5], [2, 3, 5], [3, 4, 5]), [1, 4, 5]);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([1, 2, 5], [2, 3, 5], [3, 4, 5])` should contain only three elements.
|
`sym([1, 2, 5], [2, 3, 5], [3, 4, 5])` dovrebbe contenere solo tre elementi.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.equal(sym([1, 2, 5], [2, 3, 5], [3, 4, 5]).length, 3);
|
assert.equal(sym([1, 2, 5], [2, 3, 5], [3, 4, 5]).length, 3);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5])` should return `[1, 4, 5]`.
|
`sym([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5])` dovrebbe restituire `[1, 4, 5]`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.sameMembers(sym([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5]), [1, 4, 5]);
|
assert.sameMembers(sym([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5]), [1, 4, 5]);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5])` should contain only three elements.
|
`sym([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5])` dovrebbe contenere solo tre elementi.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.equal(sym([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5]).length, 3);
|
assert.equal(sym([1, 1, 2, 5], [2, 2, 3, 5], [3, 4, 5, 5]).length, 3);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6], [1, 2, 3])` should return `[2, 3, 4, 6, 7]`.
|
`sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6], [1, 2, 3])` dovrebbe restituire `[2, 3, 4, 6, 7]`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.sameMembers(
|
assert.sameMembers(
|
||||||
@ -87,7 +87,7 @@ assert.sameMembers(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6], [1, 2, 3])` should contain only five elements.
|
`sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6], [1, 2, 3])` deve contenere solo cinque elementi.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.equal(
|
assert.equal(
|
||||||
@ -96,7 +96,7 @@ assert.equal(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6], [1, 2, 3], [5, 3, 9, 8], [1])` should return `[1, 2, 4, 5, 6, 7, 8, 9]`.
|
`sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6], [1, 2, 3], [5, 3, 9, 8], [1])` dovrebbe restituire `[1, 2, 4, 5, 6, 7, 8, 9]`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.sameMembers(
|
assert.sameMembers(
|
||||||
@ -112,7 +112,7 @@ assert.sameMembers(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
`sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6], [1, 2, 3], [5, 3, 9, 8], [1])` should contain only eight elements.
|
`sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6], [1, 2, 3], [5, 3, 9, 8], [1])` dovrebbe contenere solo otto elementi.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.equal(
|
assert.equal(
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 587d825c367417b2b2512c8f
|
id: 587d825c367417b2b2512c8f
|
||||||
title: Implement Merge Sort
|
title: Implementare Merge Sort
|
||||||
challengeType: 1
|
challengeType: 1
|
||||||
forumTopicId: 301614
|
forumTopicId: 301614
|
||||||
dashedName: implement-merge-sort
|
dashedName: implement-merge-sort
|
||||||
@ -8,27 +8,27 @@ dashedName: implement-merge-sort
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Another common intermediate sorting algorithm is merge sort. Like quick sort, merge sort also uses a divide-and-conquer, recursive methodology to sort an array. It takes advantage of the fact that it is relatively easy to sort two arrays as long as each is sorted in the first place. But we'll start with only one array as input, so how do we get to two sorted arrays from that? Well, we can recursively divide the original input in two until we reach the base case of an array with one item. A single-item array is naturally sorted, so then we can start combining. This combination will unwind the recursive calls that split the original array, eventually producing a final sorted array of all the elements. The steps of merge sort, then, are:
|
Un altro algoritmo di ordinamento intermedio comune è Merge Sort. Come Quick Sort, anche Merge Sort utilizza una metodologia ricorsiva divide-et-impera per ordinare un array. Esso si avvale del fatto che è relativamente semplice ordinare due array se ciascuno di essi è già ordinato. Ma inizieremo con un solo array come input, quindi come arriviamo a due array ordinati partendo da quello? Bene, possiamo dividere ricorsivamente a metà l'input originale fino a raggiungere il caso base di un array con un elemento. Un array con un singolo elemento è naturalmente ordinato, quindi possiamo iniziare a combinare. Questa combinazione darà il via alle chiamate ricorsive che dividono l'array originale, producendo alla fine un array finale ordinato di tutti gli elementi. I passi di Merge Sort, sono quindi:
|
||||||
|
|
||||||
**1)** Recursively split the input array in half until a sub-array with only one element is produced.
|
**1)** Dividi ricorsivamente l'array di input a metà finché non viene prodotto un sotto-array con un solo elemento.
|
||||||
|
|
||||||
**2)** Merge each sorted sub-array together to produce the final sorted array.
|
**2)** Unisci tutti i sottoarray ordinati per produrre l'array finale ordinato.
|
||||||
|
|
||||||
Merge sort is an efficient sorting method, with time complexity of *O(nlog(n))*. This algorithm is popular because it is performant and relatively easy to implement.
|
Il Merge Sort è un metodo di ordinamento efficiente, con complessità temporale di *O(nlog(n))*. Questo algoritmo è popolare perché è performante e relativamente facile da implementare.
|
||||||
|
|
||||||
As an aside, this will be the last sorting algorithm we cover here. However, later in the section on tree data structures we will describe heap sort, another efficient sorting method that requires a binary heap in its implementation.
|
A parte questo, questo sarà l'ultimo algoritmo di ordinamento che tratteremo qui. Tuttavia, più tardi nella sezione sulle strutture di dati ad albero descriveremo Heap Sort, un altro metodo di ordinamento efficiente che richiede un heap binario nella sua implementazione.
|
||||||
|
|
||||||
**Instructions:** Write a function `mergeSort` which takes an array of integers as input and returns an array of these integers in sorted order from least to greatest. A good way to implement this is to write one function, for instance `merge`, which is responsible for merging two sorted arrays, and another function, for instance `mergeSort`, which is responsible for the recursion that produces single-item arrays to feed into merge. Good luck!
|
**Istruzioni:** Scrivi una funzione `mergeSort` che prende un array di interi come input e restituisce un array di questi interi in ordine dal più piccolo al più grande. Un buon modo per implementarlo è quello di scrivere una funzione, per esempio `merge`, che si occupa dell'unione di due array, e un'altra funzione, per esempio `mergeSort`, che è responsabile della ricorsione e che produce array di elementi singoli da fornire a Merge. Buona fortuna!
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
`mergeSort` should be a function.
|
`mergeSort` dovrebbe essere una funzione.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(typeof mergeSort == 'function');
|
assert(typeof mergeSort == 'function');
|
||||||
```
|
```
|
||||||
|
|
||||||
`mergeSort` should return a sorted array (least to greatest).
|
`mergeSort` dovrebbe restituire un array ordinato (dal più piccolo al più grande).
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
@ -56,7 +56,7 @@ assert(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
`mergeSort` should return an array that is unchanged except for order.
|
`mergeSort([1,4,2,8,345,123,43,32,5643,63,123,43,2,55,1,234,92])` dovrebbe restituire un array invariato tranne che per l'ordine.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.sameMembers(
|
assert.sameMembers(
|
||||||
@ -83,7 +83,7 @@ assert.sameMembers(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
`mergeSort` should not use the built-in `.sort()` method.
|
`mergeSort` non dovrebbe utilizzare il metodo integrato `.sort()`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(isBuiltInSortUsed());
|
assert(isBuiltInSortUsed());
|
||||||
@ -117,8 +117,6 @@ function mergeSort(array) {
|
|||||||
return array;
|
return array;
|
||||||
// Only change code above this line
|
// Only change code above this line
|
||||||
}
|
}
|
||||||
|
|
||||||
mergeSort([1, 4, 2, 8, 345, 123, 43, 32, 5643, 63, 123, 43, 2, 55, 1, 234, 92]);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# --solutions--
|
# --solutions--
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 587d8259367417b2b2512c85
|
id: 587d8259367417b2b2512c85
|
||||||
title: Implement Selection Sort
|
title: Implementare Selection Sort
|
||||||
challengeType: 1
|
challengeType: 1
|
||||||
forumTopicId: 301616
|
forumTopicId: 301616
|
||||||
dashedName: implement-selection-sort
|
dashedName: implement-selection-sort
|
||||||
@ -8,19 +8,19 @@ dashedName: implement-selection-sort
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Here we will implement selection sort. Selection sort works by selecting the minimum value in a list and swapping it with the first value in the list. It then starts at the second position, selects the smallest value in the remaining list, and swaps it with the second element. It continues iterating through the list and swapping elements until it reaches the end of the list. Now the list is sorted. Selection sort has quadratic time complexity in all cases.
|
Qui implementeremo Selection Sort. Selection Sort funziona selezionando il valore minimo in una lista e scambiandolo con il primo valore dell'elenco. Poi inizia dalla seconda posizione, seleziona il valore più piccolo nella lista rimanente e lo scambia con il secondo elemento. Continua a iterare attraverso la lista e scambiare gli elementi fino a raggiungere la fine della lista. Ora la lista è ordinata. Il selection sort ha una complessità di tempo quadratica in tutti i casi.
|
||||||
|
|
||||||
**Instructions**: Write a function `selectionSort` which takes an array of integers as input and returns an array of these integers in sorted order from least to greatest.
|
**Istruzioni:** Scrivi una funzione `selectionSort` che prende un array di interi come input e restituisce un array di questi interi in ordine dal più piccolo al più grande.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
`selectionSort` should be a function.
|
`selectionSort` dovrebbe essere una funzione.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(typeof selectionSort == 'function');
|
assert(typeof selectionSort == 'function');
|
||||||
```
|
```
|
||||||
|
|
||||||
`selectionSort` should return a sorted array (least to greatest).
|
`selectionSort` dovrebbe restituire un array ordinato (dal più piccolo al più grande).
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
@ -48,7 +48,7 @@ assert(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
`selectionSort` should return an array that is unchanged except for order.
|
`selectionSort([1,4,2,8,345,123,43,32,5643,63,123,43,2,55,1,234,92])` dovrebbe restituire un array invariato tranne che per l'ordine.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert.sameMembers(
|
assert.sameMembers(
|
||||||
@ -75,7 +75,7 @@ assert.sameMembers(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
`selectionSort` should not use the built-in `.sort()` method.
|
`selectionSort` non dovrebbe usare il metodo integrato `.sort()`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(isBuiltInSortUsed());
|
assert(isBuiltInSortUsed());
|
||||||
@ -109,9 +109,6 @@ function selectionSort(array) {
|
|||||||
return array;
|
return array;
|
||||||
// Only change code above this line
|
// Only change code above this line
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
selectionSort([1, 4, 2, 8, 345, 123, 43, 32, 5643, 63, 123, 43, 2, 55, 1, 234, 92]);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# --solutions--
|
# --solutions--
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 587d8252367417b2b2512c67
|
id: 587d8252367417b2b2512c67
|
||||||
title: Add Elements at a Specific Index in a Linked List
|
title: Aggiungere elementi ad un indice specifico in una lista collegata
|
||||||
challengeType: 1
|
challengeType: 1
|
||||||
forumTopicId: 301619
|
forumTopicId: 301619
|
||||||
dashedName: add-elements-at-a-specific-index-in-a-linked-list
|
dashedName: add-elements-at-a-specific-index-in-a-linked-list
|
||||||
@ -8,15 +8,15 @@ dashedName: add-elements-at-a-specific-index-in-a-linked-list
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Let's create a addAt(index,element) method that adds an element at a given index. Just like how we remove elements at a given index, we need to keep track of the currentIndex as we traverse the linked list. When the currentIndex matches the given index, we would need to reassign the previous node's next property to reference the new added node. And the new node should reference the next node in the currentIndex. Returning to the conga line example, a new person wants to join the line, but he wants to join in the middle. You are in the middle of the line, so you take your hands off of the person ahead of you. The new person walks over and puts his hands on the person you once had hands on, and you now have your hands on the new person.
|
Creiamo un metodo addAt(index,element) che aggiunge un elemento ad un dato indice. Proprio come come quando rimuoviamo gli elementi in un dato indice, dobbiamo tenere traccia del currentIndex mentre attraversiamo la lista collegata. Quando l'indice corrente corrisponde all'indice dato, dovremmo riassegnare la proprietà next del nodo precedente per fare riferimento al nuovo nodo aggiunto. E il nuovo nodo dovrebbe fare riferimento al nodo successivo in currentIndex. Tornando all'esempio della linea conga, una nuova persona vuole unirsi alla linea, ma vuole unirsi nel mezzo. Tu sei in mezzo alla linea, così togli le mani dalla persona che ti sta davanti. La nuova persona si inserisce e mette le mani sulla persona sulla quale prima avevi le tue mani, e tu ora metti le mani sulla nuova persona.
|
||||||
|
|
||||||
# --instructions--
|
# --instructions--
|
||||||
|
|
||||||
Create an `addAt(index,element)` method that adds an element at a given index. Return false if an element could not be added. **Note:** Remember to check if the given index is a negative or is longer than the length of the linked list.
|
Crea un metodo `addAt(index,element)` che aggiunge un elemento ad un dato indice. Restituisce falso se un elemento non può essere aggiunto. **Nota:** Ricordati di controllare se l'indice fornito è negativo o è più lungo della lunghezza dell'elenco.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
Your `addAt` method should reassign `head` to the new node when the given index is 0.
|
Il tuo metodo `addAt` dovrebbe riassegnare `head` al nuovo nodo quando l'indice dato è 0.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
@ -30,7 +30,7 @@ assert(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
Your `addAt` method should increase the length of the linked list by one for each new node added to the linked list.
|
Il tuo metodo `addAt` dovrebbe aumentare di uno la lunghezza della lista collegata per ogni nuovo nodo aggiunto alla lista.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
@ -44,7 +44,7 @@ assert(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
Your `addAt` method should return `false` if a node was unable to be added.
|
Il tuo metodo `addAt` dovrebbe restituire `false` se non è stato possibile aggiungere un nodo.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 587d8256367417b2b2512c78
|
id: 587d8256367417b2b2512c78
|
||||||
title: Adjacency Matrix
|
title: Matrice di adiacenza
|
||||||
challengeType: 1
|
challengeType: 1
|
||||||
forumTopicId: 301621
|
forumTopicId: 301621
|
||||||
dashedName: adjacency-matrix
|
dashedName: adjacency-matrix
|
||||||
@ -8,9 +8,9 @@ dashedName: adjacency-matrix
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Another way to represent a graph is to put it in an <dfn>adjacency matrix</dfn>. An <dfn>adjacency matrix</dfn> is a two-dimensional (2D) array where each nested array has the same number of elements as the outer array. In other words, it is a matrix or grid of numbers, where the numbers represent the edges.
|
Un altro modo per rappresentare un grafico è quello di metterlo in una <dfn>matrice di adiacenza</dfn>. Una matrice di <dfn>adiacenza</dfn> è un array bidimensionale (2D) in cui ogni array annidato ha lo stesso numero di elementi dell'array esterno. In altre parole, è una matrice o una griglia di numeri, dove i numeri rappresentano gli archi.
|
||||||
|
|
||||||
**Note**: The numbers to the top and left of the matrix are just labels for the nodes. Inside the matrix, ones mean there exists an edge between the vertices (nodes) representing the row and column. Finally, zeros mean there is no edge or relationship.
|
**Nota**: I numeri in alto e a sinistra della matrice sono solo etichette per i nodi. All'interno della matrice, gli uni significano che esiste un arco tra i vertici (nodi) che rappresentano la riga e la colonna. Infine, gli zeri significano che non c'è un arco o relazione.
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
1 2 3
|
1 2 3
|
||||||
@ -20,7 +20,7 @@ Another way to represent a graph is to put it in an <dfn>adjacency matrix</dfn>.
|
|||||||
3 | 1 0 0
|
3 | 1 0 0
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
Above is a very simple, undirected graph where you have three nodes, where the first node is connected to the second and third node. Below is a JavaScript implementation of the same thing.
|
Quello sopra è un grafico molto semplice e non orientato con tre nodi, dove il primo nodo è collegato al secondo e al terzo nodo. Di seguito è riportata una implementazione JavaScript della stessa cosa.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var adjMat = [
|
var adjMat = [
|
||||||
@ -30,7 +30,7 @@ var adjMat = [
|
|||||||
];
|
];
|
||||||
```
|
```
|
||||||
|
|
||||||
Unlike an adjacency list, each "row" of the matrix has to have the same number of elements as nodes in the graph. Here we have a three by three matrix, which means we have three nodes in our graph. A directed graph would look similar. Below is a graph where the first node has an edge pointing toward the second node, and then the second node has an edge pointing to the third node.
|
A differenza di una lista di adiacenza, ogni "riga" della matrice deve avere lo stesso numero di elementi dei nodi nel grafico. Qui abbiamo una matrice tre per tre, il che significa che abbiamo tre nodi nel nostro grafico. Un grafico orientato apparirebbe simile. Di seguito è riportato un grafico in cui il primo nodo ha un arco rivolto verso il secondo nodo, e poi il secondo nodo ha un arco che punta al terzo nodo.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var adjMatDirected = [
|
var adjMatDirected = [
|
||||||
@ -40,15 +40,15 @@ var adjMatDirected = [
|
|||||||
];
|
];
|
||||||
```
|
```
|
||||||
|
|
||||||
Graphs can also have <dfn>weights</dfn> on their edges. So far, we have <dfn>unweighted</dfn> edges where just the presence and lack of edge is binary (`0` or `1`). You can have different weights depending on your application.
|
I grafici possono anche avere <dfn>pesi</dfn> sui loro archi. Finora, abbiamo archi <dfn>non ponderati</dfn> dove la sola presenza e mancanza di archi è binaria (`0` o `1`). Puoi avere pesi diversi a seconda della tua applicazione.
|
||||||
|
|
||||||
# --instructions--
|
# --instructions--
|
||||||
|
|
||||||
Create an adjacency matrix of an undirected graph with five nodes. This matrix should be in a multi-dimensional array. These five nodes have relationships between the first and fourth node, the first and third node, the third and fifth node, and the fourth and fifth node. All edge weights are one.
|
Crea una matrice di adiacenza di un grafico non orientato con cinque nodi. Questa matrice dovrebbe essere in un array multidimensionale. Questi cinque nodi hanno relazioni tra il primo e il quarto nodo, il primo e il terzo nodo, il terzo e il quinto nodo, il quarto e il quinto nodo. Tutti i pesi degli archi sono uno.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
`undirectedAdjList` should only contain five nodes.
|
`undirectedAdjList` dovrebbe contenere cinque nodi.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
@ -63,25 +63,25 @@ assert(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
There should be an edge between the first and fourth node.
|
Dovrebbe esserci un arco tra il primo e il quarto nodo.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(adjMatUndirected[0][3] === 1 && adjMatUndirected[3][0] === 1);
|
assert(adjMatUndirected[0][3] === 1 && adjMatUndirected[3][0] === 1);
|
||||||
```
|
```
|
||||||
|
|
||||||
There should be an edge between the first and third node.
|
Dovrebbe esserci un arco tra il primo e il terzo nodo.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(adjMatUndirected[0][2] === 1 && adjMatUndirected[2][0] === 1);
|
assert(adjMatUndirected[0][2] === 1 && adjMatUndirected[2][0] === 1);
|
||||||
```
|
```
|
||||||
|
|
||||||
There should be an edge between the third and fifth node.
|
Dovrebbe esserci un bordo tra il terzo e il quinto nodo.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(adjMatUndirected[2][4] === 1 && adjMatUndirected[4][2] === 1);
|
assert(adjMatUndirected[2][4] === 1 && adjMatUndirected[4][2] === 1);
|
||||||
```
|
```
|
||||||
|
|
||||||
There should be an edge between the fourth and fifth node.
|
Dovrebbe esserci un arco tra il quarto e il quinto nodo.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(adjMatUndirected[3][4] === 1 && adjMatUndirected[4][3] === 1);
|
assert(adjMatUndirected[3][4] === 1 && adjMatUndirected[4][3] === 1);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: bd7156d8c242eddfaeb5bd13
|
id: bd7156d8c242eddfaeb5bd13
|
||||||
title: Build a freeCodeCamp Forum Homepage
|
title: Costruisci una Homepage del Forum freeCodeCamp
|
||||||
challengeType: 3
|
challengeType: 3
|
||||||
forumTopicId: 302349
|
forumTopicId: 302349
|
||||||
dashedName: build-a-freecodecamp-forum-homepage
|
dashedName: build-a-freecodecamp-forum-homepage
|
||||||
@ -8,21 +8,21 @@ dashedName: build-a-freecodecamp-forum-homepage
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
**Objective:** Build a [CodePen.io](https://codepen.io) app that is functionally similar to this: <https://codepen.io/freeCodeCamp/full/JqdoMV>.
|
**Obiettivo:** Costruisci un'app [CodePen.io](https://codepen.io) funzionalmente simile a questa: <https://codepen.io/freeCodeCamp/full/JqdoMV>.
|
||||||
|
|
||||||
Fulfill the below [user stories](https://en.wikipedia.org/wiki/User_story). Use whichever libraries or APIs you need. Give it your own personal style.
|
Soddisfa le seguenti [user story](https://en.wikipedia.org/wiki/User_story). Utilizza le librerie o le API di cui hai bisogno. Usa il tuo stile personale.
|
||||||
|
|
||||||
**User Story:** I can see a list of the most recent posts on the freeCodeCamp forum.
|
**User Story:** Posso vedere un elenco dei post più recenti sul forum freeCodeCamp.
|
||||||
|
|
||||||
**User Story:** For each topic, I can see the title and a list of links to users who have recently posted in it.
|
**User Story:** Per ogni argomento, posso vedere il titolo e un elenco di link agli utenti che hanno recentemente pubblicato su di esso.
|
||||||
|
|
||||||
**User Story:** I can see the number of replies and views that each topic has had, and a timestamp of when the topic was last active.
|
**User Story:** Posso vedere il numero di risposte e di visualizzazioni che ogni argomento ha avuto, e un timestamp di quando l'argomento è stato attivo l'ultima volta.
|
||||||
|
|
||||||
**Hint:** To get the 30 most recent forum posts: <https://forum-proxy.freecodecamp.rocks/latest>.
|
**Suggerimento:** Per ottenere i 30 post più recenti del forum: <https://forum-proxy.freecodecamp.rocks/latest>.
|
||||||
|
|
||||||
When you are finished, include a link to your project on CodePen and click the "I've completed this challenge" button.
|
Quando hai finito, includi un link al tuo progetto su CodePen e clicca sul pulsante "Ho completato questa sfida".
|
||||||
|
|
||||||
You can get feedback on your project by sharing it on the [freeCodeCamp forum](https://forum.freecodecamp.org/c/project-feedback/409).
|
Puoi ottenere un feedback sul tuo progetto condividendolo sul forum [freeCodeCamp](https://forum.freecodecamp.org/c/project-feedback/409).
|
||||||
|
|
||||||
# --solutions--
|
# --solutions--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: bd7150d8c442eddfafb5bd1c
|
id: bd7150d8c442eddfafb5bd1c
|
||||||
title: P2P Video Chat Application
|
title: Applicazione Video Chat P2P
|
||||||
challengeType: 4
|
challengeType: 4
|
||||||
forumTopicId: 302366
|
forumTopicId: 302366
|
||||||
dashedName: p2p-video-chat-application
|
dashedName: p2p-video-chat-application
|
||||||
@ -8,31 +8,31 @@ dashedName: p2p-video-chat-application
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
**Objective:** Build a [Replit](https://replit.com/) app that is functionally similar to this: <https://p2p-video-chat-application.freecodecamp.rocks/>.
|
**Obiettivo:** Costruisci un'app [Replit](https://replit.com/) funzionalmente simile a questa: <https://p2p-video-chat-application.freecodecamp.rocks/>.
|
||||||
|
|
||||||
Fulfill the below [user stories](https://en.wikipedia.org/wiki/User_story). Use whichever libraries or APIs you need. Give it your own personal style.
|
Soddisfa le seguenti [user story](https://en.wikipedia.org/wiki/User_story). Utilizza le librerie o le API di cui hai bisogno. Usa il tuo stile personale.
|
||||||
|
|
||||||
**User Story:** Upon arriving, the browser will prompt me to access my camera and microphone.
|
**User Story:** All'arrivo, il browser mi chiederà di accedere alla mia fotocamera e al mio microfono.
|
||||||
|
|
||||||
**User Story:** After I give it permission, I am prompted to type in a room name.
|
**User Story:** Dopo aver dato il permesso, mi viene chiesto di digitare il nome di una stanza.
|
||||||
|
|
||||||
**User Story:** Once I type in the room name, a room will be created if no room of that name existed before.
|
**User Story:** Una volta digitato il nome della stanza, se non esiste una stanza con quel nome ne verrà creata una.
|
||||||
|
|
||||||
**User Story:** A friend of mine can subsequently go to the same website, type in the same room I entered, and join the same room, then enter into a video chat with me.
|
**User Story:** Di conseguenza un amico potrà andare allo stesso sito web, digitare lo stesso nome per la stanza, unirsi alla stessa stanza e iniziare una chat video con me.
|
||||||
|
|
||||||
**User Story:** If I type in a room name, and there are already two people in that room, I get a notification that the room is full.
|
**User Story:** Se scrivo il nome della stanza, e ci sono già due persone all'interno di una stanza, ricevo una notifica che la stanza è piena.
|
||||||
|
|
||||||
**User Story:** Anyone can create or join any room. And there can be any number of rooms, but all of them must have unique names.
|
**User Story:** Chiunque può creare o unirsi ad una qualsiasi stanza. E ci può essere qualsiasi numero di stanze, ma ognuna deve avere un nome univoco.
|
||||||
|
|
||||||
**User Story:** I can choose to not permit the site to access my microphone and webcam. If I choose not to do this, or if some other driver problem occurs, I see an error message saying these are required.
|
**User Story:** Posso scegliere di non permettere al sito di usare il mio microfono e la mia webcam. Se scelgo di non farlo, o se si presenta qualche altro problema di driver, vedo un messaggio di errore che dice che sono richiesti.
|
||||||
|
|
||||||
**User Story:** When I choose to cancel the room name input step, or if I type in no name, or just spaces, it should again ask me again to type in a valid room name.
|
**User Story:** Quando scelgo di cancellare lo step di scrivere il nome di una stanza, o se non scrivo alcun nome, o se scrivo solo spazi, dovrei ricevere di nuovo la richiesta di scrivere un nome di stanza valido.
|
||||||
|
|
||||||
**User Story:** If one of the two people in the room get disconnected, they can reconnect to the same room and continue chatting.
|
**User Story:** Se una delle due persone in una stanza viene disconnessa, si può riconnettere alla stessa stanza e continuare a chattare.
|
||||||
|
|
||||||
Once you've finished implementing these user stories, enter the URL to your live app and, optionally, your GitHub repository. Then click the "I've completed this challenge" button.
|
Una volta terminata l'implementazione di queste user story, scrivi l'URL della tua app live e, opzionalmente, il tuo repository GitHub. Quindi clicca sul pulsante "Ho completato questa sfida".
|
||||||
|
|
||||||
You can get feedback on your project by sharing it on the [freeCodeCamp forum](https://forum.freecodecamp.org/c/project-feedback/409).
|
Puoi ottenere un feedback sul tuo progetto condividendolo sul forum [freeCodeCamp](https://forum.freecodecamp.org/c/project-feedback/409).
|
||||||
|
|
||||||
# --solutions--
|
# --solutions--
|
||||||
|
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
id: 602da0de22201c65d2a019f6
|
||||||
|
title: Impara Bash avanzato costruendo un traduttore Kitty Ipsum
|
||||||
|
challengeType: 12
|
||||||
|
helpCategory: Relational Databases
|
||||||
|
url: https://github.com/moT01/.learn-advanced-bash-by-building-a-kitty-ipsum-translator
|
||||||
|
dashedName: learn-advanced-bash-by-building-a-kitty-ipsum-translator
|
||||||
|
---
|
||||||
|
|
||||||
|
# --description--
|
||||||
|
|
||||||
|
# --instructions--
|
||||||
|
|
||||||
|
# --hints--
|
||||||
|
|
||||||
|
# --seed--
|
||||||
|
|
||||||
|
# --solutions--
|
@ -8,7 +8,7 @@ dashedName: match-letters-of-the-alphabet
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Você viu como pode usar <dfn>classes de caracteres</dfn> para especificar um grupo de caracteres para capturar. Mas você precisaria escrever muito para definir uma classe larga como, por exemplo, para capturar todas as letras do alfabeto. Felizmente há uma maneira de fazer com que elas fiquem pequenas e simples.
|
Você viu como pode usar <dfn>conjuntos de caracteres</dfn> para especificar um grupo de caracteres para capturar. Mas você precisaria escrever muito para definir uma classe larga como, por exemplo, para capturar todas as letras do alfabeto. Felizmente há uma maneira de fazer com que elas fiquem pequenas e simples.
|
||||||
|
|
||||||
Você pode usar um hífen (`-`) para definir um intervalo de caracteres para capturar dentro de uma classe.
|
Você pode usar um hífen (`-`) para definir um intervalo de caracteres para capturar dentro de uma classe.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: bad87fee1348bd9aec908849
|
id: bad87fee1348bd9aec908849
|
||||||
title: Adicione elementos em seus Bootstrap Wells
|
title: Adicionar elementos aos poços no Bootstrap
|
||||||
challengeType: 0
|
challengeType: 0
|
||||||
forumTopicId: 16636
|
forumTopicId: 16636
|
||||||
dashedName: add-elements-within-your-bootstrap-wells
|
dashedName: add-elements-within-your-bootstrap-wells
|
||||||
@ -10,11 +10,11 @@ dashedName: add-elements-within-your-bootstrap-wells
|
|||||||
|
|
||||||
Agora estamos na profundidade de diversos elementos `div` em cada coluna da nossa linha. Isso é tão profundo quanto precisamos ir. Agora podemos adicionar nossos elementos `button`.
|
Agora estamos na profundidade de diversos elementos `div` em cada coluna da nossa linha. Isso é tão profundo quanto precisamos ir. Agora podemos adicionar nossos elementos `button`.
|
||||||
|
|
||||||
Aninhe três elementos `button` dentro de cada um de seus elementos `div` contendo o nome de classe `well`.
|
Aninhe três elementos `button` dentro de cada um dos elementos `div` contendo o nome de classe `well`.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
Três elementos `button` devem ser aninhados dentro de cada um de seus elementos `div` com a classe `well`.
|
Três elementos `button` devem ser aninhados dentro de cada um dos elementos `div` com a classe `well`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
@ -29,7 +29,7 @@ Você deve ter o total de 6 elementos `button`.
|
|||||||
assert($('button') && $('button').length > 5);
|
assert($('button') && $('button').length > 5);
|
||||||
```
|
```
|
||||||
|
|
||||||
Todos os seus elementos `button` deve conter tag de fechamento.
|
Todos os elementos `button` devem conter tag de fechamento.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: bad87fee1348bd9aedc08845
|
id: bad87fee1348bd9aedc08845
|
||||||
title: Adicione Ícones de Font Awesome para todos os seus botões
|
title: Adicione ícones de Font Awesome para todos os botões
|
||||||
challengeType: 0
|
challengeType: 0
|
||||||
forumTopicId: 16637
|
forumTopicId: 16637
|
||||||
required:
|
required:
|
||||||
@ -12,17 +12,17 @@ dashedName: add-font-awesome-icons-to-all-of-our-buttons
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Font Awesome é uma biblioteca conveniente de ícones. Estes ícones podem ser fontes da web ou gráficos vetoriais. Estes ícones são tratados assim como as fontes. Você pode especificar seu tamanho utilizando pixels, e eles irão assumir o tamanho de fonte de seus elementos HTML parentes.
|
Font Awesome é uma biblioteca conveniente de ícones. Estes ícones podem ser fontes da web ou gráficos vetoriais. Estes ícones são tratados assim como as fontes. Você pode especificar seu tamanho utilizando pixels, e eles vão assumir o tamanho de fonte dos elementos pais do HTML.
|
||||||
|
|
||||||
# --instructions--
|
# --instructions--
|
||||||
|
|
||||||
Utilize Font Awesome para adicionar um ícone `info-circle` para o seu botão de informação e um ícone `trash` para o seu botão de deleção.
|
Utilize Font Awesome para adicionar um ícone `info-circle` ao botão de informação e um ícone `trash` para o botão de deleção.
|
||||||
|
|
||||||
**Nota:** O elemento `span` é uma alternativa aceitável ao elemento `i` para as instruções abaixo.
|
**Observação:** o elemento `span` é uma alternativa aceitável ao elemento `i` para as instruções abaixo.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
Você deve adicionar um `<i class="fas fa-info-circle"></i>` dentro do seu elemento de botão `info`.
|
Você deve adicionar um `<i class="fas fa-info-circle"></i>` dentro do elemento de botão `info`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
@ -31,7 +31,7 @@ assert(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
Você deve adicionar um `<i class="fas fa-trash"></i>` dentro do seu elemento de botão `delete`.
|
Você deve adicionar um `<i class="fas fa-trash"></i>` dentro do elemento de botão `delete`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
@ -40,7 +40,7 @@ assert(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
Cada um de seus elementos `i` deve ter uma tag de fechamento e `<i class="fas fa-thumbs-up"></i>` está em seu elemento de botão `like`.
|
Cada um dos elementos `i` deve ter uma tag de fechamento e `<i class="fas fa-thumbs-up"></i>` está no elemento de botão `like`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: bad87fee1348bd9aedd08845
|
id: bad87fee1348bd9aedd08845
|
||||||
title: Adicione Ícones de Font Awesome para nossos botões
|
title: Adicionar ícones de Font Awesome para nossos botões
|
||||||
challengeType: 0
|
challengeType: 0
|
||||||
forumTopicId: 16638
|
forumTopicId: 16638
|
||||||
required:
|
required:
|
||||||
@ -12,7 +12,7 @@ dashedName: add-font-awesome-icons-to-our-buttons
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Font Awesome é uma biblioteca conveniente de ícones. Estes ícones podem ser fontes da web ou gráficos vetoriais. Estes ícones são tratados assim como as fontes. Você pode especificar seu tamanho utilizando pixels, e eles irão assumir o tamanho de fonte de seus elementos HTML parentes.
|
Font Awesome é uma biblioteca conveniente de ícones. Estes ícones podem ser fontes da web ou gráficos vetoriais. Estes ícones são tratados assim como as fontes. Você pode especificar seu tamanho utilizando pixels, e eles vão assumir o tamanho de fonte dos elementos pais do HTML.
|
||||||
|
|
||||||
Você pode incluir o Font Awesome em qualquer aplicativo, adicionando o seguinte código ao topo do seu HTML:
|
Você pode incluir o Font Awesome em qualquer aplicativo, adicionando o seguinte código ao topo do seu HTML:
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ Observe que o elemento `span` também é aceitável para uso com ícones.
|
|||||||
|
|
||||||
# --instructions--
|
# --instructions--
|
||||||
|
|
||||||
Use o Font Awesome para adicionar um ícone `thumbs-up` ao seu botão like, doando-o um elemento `i` com as classes `fas` e `fa-thumbs-up`. Certifique-se de manter o texto `Like` ao lado do ícone.
|
Use o Font Awesome para adicionar um ícone `thumbs-up` ao botão like, doando-o um elemento `i` com as classes `fas` e `fa-thumbs-up`. Certifique-se de manter o texto `Like` ao lado do ícone.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ Você deve adicionar um elemento `i` com as classes `fas` e `fa-thumbs-up`.
|
|||||||
assert($('i').is('.fas.fa-thumbs-up') || $('span').is('.fas.fa-thumbs-up'));
|
assert($('i').is('.fas.fa-thumbs-up') || $('span').is('.fas.fa-thumbs-up'));
|
||||||
```
|
```
|
||||||
|
|
||||||
Seu ícone `fa-thumbs-up` deve estar localizado dentro do botão Like.
|
O ícone `fa-thumbs-up` deve estar localizado dentro do botão Like.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
@ -53,7 +53,7 @@ assert(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
Seu elemento `i` deve estar dentro de seu novo elemento `button`.
|
O elemento `i` deve estar dentro do novo elemento `button`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
@ -62,7 +62,7 @@ assert(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
Seu elemento de ícone deve ter uma tag de fechamento.
|
O elemento de ícone deve ter uma tag de fechamento.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(code.match(/<\/i>|<\/span>/g));
|
assert(code.match(/<\/i>|<\/span>/g));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: bad87fee1348bd9aec908853
|
id: bad87fee1348bd9aec908853
|
||||||
title: Addicone Atributos id aos Elementos Bootstrap
|
title: Adicionar atributos id aos elementos do Bootstrap
|
||||||
challengeType: 0
|
challengeType: 0
|
||||||
forumTopicId: 16639
|
forumTopicId: 16639
|
||||||
dashedName: add-id-attributes-to-bootstrap-elements
|
dashedName: add-id-attributes-to-bootstrap-elements
|
||||||
@ -8,23 +8,23 @@ dashedName: add-id-attributes-to-bootstrap-elements
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Lembre que, além dos atributos de classe, você pode dar a cada um de seus elementos um atributo `id`.
|
Lembre-se de que, além dos atributos de classe, você pode dar a cada um de seus elementos um atributo `id`.
|
||||||
|
|
||||||
Cada id precisa ser único para um elemento específico e utilizado apenas uma vez por página.
|
Cada id precisa ser único para um elemento específico e utilizado apenas uma vez por página.
|
||||||
|
|
||||||
Vamos dar um id único para cada um de nossos elementos `div` com classe `well`.
|
Vamos dar um id único para cada um de nossos elementos `div` com classe `well`.
|
||||||
|
|
||||||
Lembre-se que você pode dar um id a um elemento dessa forma:
|
Lembre-se de que você pode dar um id a um elemento dessa forma:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<div class="well" id="center-well">
|
<div class="well" id="center-well">
|
||||||
```
|
```
|
||||||
|
|
||||||
Dê ao well a esquerda o id `left-well`. Dê ao well a direita o id `right-well`.
|
Dê ao poço à esquerda o id `left-well`. Dê ao poço à direita o id `right-well`.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
Seu `well` da esquerda deve ter o id `left-well`.
|
O `well` da esquerda deve ter o id `left-well`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
@ -33,7 +33,7 @@ assert(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
Seu `well` da direita deve ter o id `right-well`.
|
O `well` da direita deve ter o id `right-well`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: bad87fee1348bd9aec908850
|
id: bad87fee1348bd9aec908850
|
||||||
title: Aplique o Estilo de Botão Padrão do Bootstrap
|
title: Aplicar o estilo de botão padrão do Bootstrap
|
||||||
challengeType: 0
|
challengeType: 0
|
||||||
forumTopicId: 16657
|
forumTopicId: 16657
|
||||||
dashedName: apply-the-default-bootstrap-button-style
|
dashedName: apply-the-default-bootstrap-button-style
|
||||||
@ -8,19 +8,19 @@ dashedName: apply-the-default-bootstrap-button-style
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Bootstrap tem outra classe de botão chamada `btn-default`.
|
O Bootstrap tem outra classe de botão chamada `btn-default`.
|
||||||
|
|
||||||
Aplique ambas as classes `btn` e `btn-default` para cada um de seus elementos `button`.
|
Aplique ambas as classes `btn` e `btn-default` a cada um dos elementos `button`.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
Você deve aplicar a classe `btn` para cada um de seus elementos `button`.
|
Você deve aplicar a classe `btn` para cada um dos elementos `button`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert($('.btn').length > 5);
|
assert($('.btn').length > 5);
|
||||||
```
|
```
|
||||||
|
|
||||||
Você deve aplicar a classe `btn-default` para cada um de seus elementos `button`.
|
Você deve aplicar a classe `btn-default` para cada um dos elementos `button`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert($('.btn-default').length > 5);
|
assert($('.btn-default').length > 5);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: bad87fee1348cd8acef08813
|
id: bad87fee1348cd8acef08813
|
||||||
title: Chame Ações Opcionais com btn-info
|
title: Chamar ações opcionais com btn-info
|
||||||
challengeType: 0
|
challengeType: 0
|
||||||
forumTopicId: 16770
|
forumTopicId: 16770
|
||||||
dashedName: call-out-optional-actions-with-btn-info
|
dashedName: call-out-optional-actions-with-btn-info
|
||||||
@ -8,9 +8,9 @@ dashedName: call-out-optional-actions-with-btn-info
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Bootstrap vem com várias cores pré-definidas para botões. A classe `btn-info` é usada para chamar atenção para ações opcionais que o usuário pode tomar.
|
O Bootstrap vem com várias cores pré-definidas para botões. A classe `btn-info` é usada para chamar atenção para ações opcionais que o usuário pode tomar.
|
||||||
|
|
||||||
Crie um novo botão do Bootstrap no nível de blocos abaixo do seu botão `Like` com o texto `Info`, e adicione as classes `btn-info` e `btn-block` do Bootstrap a ele.
|
Crie um novo botão do Bootstrap no nível de blocos abaixo do botão `Like` com o texto `Info`, e adicione as classes `btn-info` e `btn-block` do Bootstrap a ele.
|
||||||
|
|
||||||
Observe que esses botões ainda precisam das classes `btn` e `btn-block`.
|
Observe que esses botões ainda precisam das classes `btn` e `btn-block`.
|
||||||
|
|
||||||
@ -22,13 +22,13 @@ Você deve criar um novo elemento `button` com o texto `Info`.
|
|||||||
assert(new RegExp('info', 'gi').test($('button').text()));
|
assert(new RegExp('info', 'gi').test($('button').text()));
|
||||||
```
|
```
|
||||||
|
|
||||||
Ambos os seus botões Bootstrap devem ter as classes `btn` e `btn-block`.
|
Ambos os botões do Bootstrap devem ter as classes `btn` e `btn-block`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert($('button.btn-block.btn').length > 1);
|
assert($('button.btn-block.btn').length > 1);
|
||||||
```
|
```
|
||||||
|
|
||||||
Seu novo botão deve ter a classe `btn-info`.
|
O novo botão deve ter a classe `btn-info`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert($('button').hasClass('btn-info'));
|
assert($('button').hasClass('btn-info'));
|
||||||
|
@ -8,9 +8,9 @@ dashedName: center-text-with-bootstrap
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Agora que estamos usando Bootstrap, podemos centralizar nossos elementos de cabeçalho para deixá-los com melhor aparência. Tudo que precisamos fazer é adicionar a classe `text-center` para o nosso elemento `h2`.
|
Agora que estamos usando Bootstrap, podemos centralizar nossos elementos de cabeçalho para deixá-los com melhor aparência. Tudo que precisamos fazer é adicionar a classe `text-center` ao nosso elemento `h2`.
|
||||||
|
|
||||||
Lembre-se que você pode adicionar diversas classes para o mesmo elemento ao separar cada classe com um espaço, dessa forma:
|
Lembre-se de que você pode adicionar várias classes ao mesmo elemento separando cada uma delas com um espaço, assim:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<h2 class="red-text text-center">your text</h2>
|
<h2 class="red-text text-center">your text</h2>
|
||||||
@ -18,13 +18,13 @@ Lembre-se que você pode adicionar diversas classes para o mesmo elemento ao sep
|
|||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
Seu elemento `h2` deve estar centralizado ao aplicar a classe `text-center`
|
O elemento `h2` deve estar centralizado ao aplicar a classe `text-center`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert($('h2').hasClass('text-center'));
|
assert($('h2').hasClass('text-center'));
|
||||||
```
|
```
|
||||||
|
|
||||||
Seu elemento `h2` ainda deve ter a classe `red-text`
|
O elemento `h2` ainda deve ter a classe `red-text`
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert($('h2').hasClass('red-text'));
|
assert($('h2').hasClass('red-text'));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: bad87fee1348cd8acef08812
|
id: bad87fee1348cd8acef08812
|
||||||
title: Criar um elemento botão de bloco de Bootstrap
|
title: Criar um botão de elemento de bloco do Bootstrap
|
||||||
challengeType: 0
|
challengeType: 0
|
||||||
forumTopicId: 16810
|
forumTopicId: 16810
|
||||||
dashedName: create-a-block-element-bootstrap-button
|
dashedName: create-a-block-element-bootstrap-button
|
||||||
@ -8,7 +8,7 @@ dashedName: create-a-block-element-bootstrap-button
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
Normalmente, seus elementos `button` com as classes `btn` e `btn-default` são apenas tão grandes quanto os textos que eles contêm. Por exemplo:
|
Normalmente, os elementos `button` com as classes `btn` e `btn-default` são apenas tão grandes quanto os textos que eles contêm. Por exemplo:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<button class="btn btn-default">Submit</button>
|
<button class="btn btn-default">Submit</button>
|
||||||
@ -18,7 +18,7 @@ Este botão seria apenas tão largo quanto a palavra `Submit`.
|
|||||||
|
|
||||||
<button class='btn btn-default'>Submit</button>
|
<button class='btn btn-default'>Submit</button>
|
||||||
|
|
||||||
Tornando-os elementos de bloco com a classe adicional `btn-block`, seu botão irá esticar para preencher todo o espaço horizontal da sua página e qualquer elemento seguinte irá fluir para uma nova linha abaixo do bloco.
|
Tornando-os elementos de bloco com a classe adicional `btn-block`, o botão vai esticar para preencher todo o espaço horizontal da sua página e qualquer elemento seguinte vai fluir para uma nova linha abaixo do bloco.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<button class="btn btn-default btn-block">Submit</button>
|
<button class="btn btn-default btn-block">Submit</button>
|
||||||
@ -30,17 +30,17 @@ Esse botão ocuparia 100% da largura disponível.
|
|||||||
|
|
||||||
Note que esses botões ainda precisam da classe `btn`.
|
Note que esses botões ainda precisam da classe `btn`.
|
||||||
|
|
||||||
Adicione classe `btn-block` do Bootstrap para seu botão Bootstrap.
|
Adicione a classe `btn-block` do Bootstrap ao botão do Bootstrap.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
Seu botão ainda deveria ter as classes `btn` e `btn-default`.
|
O botão ainda deve ter as classes `btn` e `btn-default`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert($('button').hasClass('btn') && $('button').hasClass('btn-default'));
|
assert($('button').hasClass('btn') && $('button').hasClass('btn-default'));
|
||||||
```
|
```
|
||||||
|
|
||||||
Seu botão deve ter a classe `btn-block`.
|
O botão deve ter a classe `btn-block`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert($('button').hasClass('btn-block'));
|
assert($('button').hasClass('btn-block'));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: bad87fee1348cd8acdf08812
|
id: bad87fee1348cd8acdf08812
|
||||||
title: Crie um Botão Bootstrap
|
title: Criar um botão do Bootstrap
|
||||||
challengeType: 0
|
challengeType: 0
|
||||||
forumTopicId: 16811
|
forumTopicId: 16811
|
||||||
dashedName: create-a-bootstrap-button
|
dashedName: create-a-bootstrap-button
|
||||||
@ -10,7 +10,7 @@ dashedName: create-a-bootstrap-button
|
|||||||
|
|
||||||
O Bootstrap possui seus próprios estilos para elementos `button`, os quais ficam muito melhores do que aqueles botões em HTML puro.
|
O Bootstrap possui seus próprios estilos para elementos `button`, os quais ficam muito melhores do que aqueles botões em HTML puro.
|
||||||
|
|
||||||
Crie um novo elemento `button` abaixo da sua grande foto de gatinho. Dê a ele as classes `btn` e `btn-default`, assim como o texto `Like`.
|
Crie um novo elemento `button` abaixo da foto grande do gatinho. Dê a ele as classes `btn` e `btn-default`, assim como o texto `Like`.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
@ -23,13 +23,13 @@ assert(
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
Seu novo botão deve ter duas classes: `btn` e `btn-default`.
|
O novo botão deve ter duas classes: `btn` e `btn-default`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert($('button').hasClass('btn') && $('button').hasClass('btn-default'));
|
assert($('button').hasClass('btn') && $('button').hasClass('btn-default'));
|
||||||
```
|
```
|
||||||
|
|
||||||
Todos os seus elementos `button` devem ter tags de fechamento.
|
Todos os elementos `button` devem ter tags de fechamento.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(
|
assert(
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 587d824c367417b2b2512c4c
|
id: 587d824c367417b2b2512c4c
|
||||||
title: Assert Deep Equality with .deepEqual and .notDeepEqual
|
title: Assegurar a igualdade profunda com .deepEqual e .notDeepEqual
|
||||||
challengeType: 2
|
challengeType: 2
|
||||||
forumTopicId: 301587
|
forumTopicId: 301587
|
||||||
dashedName: assert-deep-equality-with--deepequal-and--notdeepequal
|
dashedName: assert-deep-equality-with--deepequal-and--notdeepequal
|
||||||
@ -8,17 +8,17 @@ dashedName: assert-deep-equality-with--deepequal-and--notdeepequal
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
As a reminder, this project is being built upon the following starter project on [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), or cloned from [GitHub](https://github.com/freeCodeCamp/boilerplate-mochachai/).
|
Como observação, este projeto está sendo construído a partir do seguinte projeto no [Replit](https://replit.com/github/freeCodeCamp/boilerplate-mochachai), ou clonado do [Github](https://github.com/freeCodeCamp/boilerplate-mochachai/).
|
||||||
|
|
||||||
`deepEqual()` asserts that two objects are deep equal.
|
`deepEqual()` assegura que dois objetos são profundamente iguais.
|
||||||
|
|
||||||
# --instructions--
|
# --instructions--
|
||||||
|
|
||||||
Within `tests/1_unit-tests.js` under the test labelled `#7` in the `Equality` suite, change each `assert` to either `assert.deepEqual` or `assert.notDeepEqual` to make the test pass (should evaluate to `true`). Do not alter the arguments passed to the asserts.
|
Em `tests/1_unit-tests.js`, no teste classificado como `#7` e na suíte `Equality`, modifique cada `assert` para `assert.deepEqual` ou para `assert.notDeepEqual`, de maneira que cada teste passe (seja avaliado como `true`). Não altere os argumentos passados às afirmações.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
All tests should pass.
|
Todos os testes devem passar.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
(getUserInput) =>
|
(getUserInput) =>
|
||||||
@ -32,7 +32,7 @@ All tests should pass.
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
You should choose the correct method for the first assertion - `deepEqual` vs. `notDeepEqual`.
|
Você deve escolher o método correto para a primeira declaração - `deepEqual` ou `notDeepEqual`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
(getUserInput) =>
|
(getUserInput) =>
|
||||||
@ -50,7 +50,7 @@ You should choose the correct method for the first assertion - `deepEqual` vs. `
|
|||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
You should choose the correct method for the second assertion - `deepEqual` vs. `notDeepEqual`.
|
Você deve escolher o método correto para a segunda declaração - `deepEqual` ou `notDeepEqual`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
(getUserInput) =>
|
(getUserInput) =>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f060b6c005b0e76f05b
|
id: 5e7b9f060b6c005b0e76f05b
|
||||||
title: Build your own Functions
|
title: Crie suas próprias funções
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: nLDychdBwUg
|
videoId: nLDychdBwUg
|
||||||
dashedName: build-your-own-functions
|
dashedName: build-your-own-functions
|
||||||
@ -8,15 +8,15 @@ dashedName: build-your-own-functions
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise](https://www.youtube.com/watch?v=ksvGhDsjtpw)
|
\- [Exercício](https://www.youtube.com/watch?v=ksvGhDsjtpw)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will the following Python program print out?:
|
Qual será a impressão do seguinte programa em Python?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def fred():
|
def fred():
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0b0b6c005b0e76f06d
|
id: 5e7b9f0b0b6c005b0e76f06d
|
||||||
title: Comparing and Sorting Tuples
|
title: Comparação e ordenação de tuplas
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: dZXzBXUxxCs
|
videoId: dZXzBXUxxCs
|
||||||
dashedName: comparing-and-sorting-tuples
|
dashedName: comparing-and-sorting-tuples
|
||||||
@ -8,15 +8,15 @@ dashedName: comparing-and-sorting-tuples
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise](https://www.youtube.com/watch?v=EhQxwzyT16E)
|
\- [Exercício](https://www.youtube.com/watch?v=EhQxwzyT16E)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Which does the same thing as the following code?:
|
Qual das alternativas produz o mesmo resultado que o código seguinte?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
lst = []
|
lst = []
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f050b6c005b0e76f058
|
id: 5e7b9f050b6c005b0e76f058
|
||||||
title: Conditional Execution
|
title: Execução condicional
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: gz_IfIsZQtc
|
videoId: gz_IfIsZQtc
|
||||||
dashedName: conditional-execution
|
dashedName: conditional-execution
|
||||||
@ -10,7 +10,7 @@ dashedName: conditional-execution
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Which code is indented correctly to print "Yes" if x = 0 and y = 10?
|
Qual código está indentado corretamente para imprimir "Yes" se x = 0 e y = 10?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f6a0b6c005b0e76f097
|
id: 5e7b9f6a0b6c005b0e76f097
|
||||||
title: 'Data Visualization: Mailing Lists'
|
title: 'Visualização de dados: listas de e-mails'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: RYdW660KkaQ
|
videoId: RYdW660KkaQ
|
||||||
dashedName: data-visualization-mailing-lists
|
dashedName: data-visualization-mailing-lists
|
||||||
@ -8,27 +8,27 @@ dashedName: data-visualization-mailing-lists
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise: Geodata](https://www.youtube.com/watch?v=KfhslNzopxo)
|
\- [Exercício: Geodata](https://www.youtube.com/watch?v=KfhslNzopxo)
|
||||||
|
|
||||||
\- [Exercise: Gmane Model](https://www.youtube.com/watch?v=wSpl1-7afAk)
|
\- [Exercício: Gmane Model](https://www.youtube.com/watch?v=wSpl1-7afAk)
|
||||||
|
|
||||||
\- [Exercise: Gmane Spider](https://www.youtube.com/watch?v=H3w4lOFBUOI)
|
\- [Exercício: Gmane Spider](https://www.youtube.com/watch?v=H3w4lOFBUOI)
|
||||||
|
|
||||||
\- [Exercise: Gmane Viz](https://www.youtube.com/watch?v=LRqVPMEXByw)
|
\- [Exercício: Gmane Viz](https://www.youtube.com/watch?v=LRqVPMEXByw)
|
||||||
|
|
||||||
\- [Exercise: Page Rank](https://www.youtube.com/watch?v=yFRAZBkBDBs)
|
\- [Exercício: Ranking de páginas](https://www.youtube.com/watch?v=yFRAZBkBDBs)
|
||||||
|
|
||||||
\- [Exercise: Page Spider](https://www.youtube.com/watch?v=sXedPQ_AnWA)
|
\- [Exercício: Page Spider](https://www.youtube.com/watch?v=sXedPQ_AnWA)
|
||||||
|
|
||||||
\- [Exercise: Page Viz](https://www.youtube.com/watch?v=Fm0hpkxsZoo)
|
\- [Exercício: Page Viz](https://www.youtube.com/watch?v=Fm0hpkxsZoo)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Which is a common JavaScript visualization library?
|
Qual das alternativas é uma biblioteca comum de visualização em JavaScript?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f6a0b6c005b0e76f096
|
id: 5e7b9f6a0b6c005b0e76f096
|
||||||
title: 'Data Visualization: Page Rank'
|
title: 'Visualização de dados: Classificação de página'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: 6-w_qIUwaxU
|
videoId: 6-w_qIUwaxU
|
||||||
dashedName: data-visualization-page-rank
|
dashedName: data-visualization-page-rank
|
||||||
@ -10,19 +10,19 @@ dashedName: data-visualization-page-rank
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
How does the PageRank algorithm work?
|
Como funciona o algoritmo da PageRank?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
It determines which pages are most highly connected.
|
Determina quais as páginas mais ligadas entre si.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
It ranks pages based on view counts.
|
Ele classifica as páginas baseadas na contagem de visualização.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
It figures out which pages contain the most important content.
|
Ele descobre quais páginas contêm o conteúdo mais importante.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0a0b6c005b0e76f069
|
id: 5e7b9f0a0b6c005b0e76f069
|
||||||
title: Dictionaries and Loops
|
title: Dicionários e laços de repetição
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: EEmekKiKG70
|
videoId: EEmekKiKG70
|
||||||
dashedName: dictionaries-and-loops
|
dashedName: dictionaries-and-loops
|
||||||
@ -8,15 +8,15 @@ dashedName: dictionaries-and-loops
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise](https://www.youtube.com/watch?v=PrhZ9qwBDD8)
|
\- [Exercício](https://www.youtube.com/watch?v=PrhZ9qwBDD8)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will the following code print?:
|
O que será impresso pelo código a seguir?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
counts = { 'chuck' : 1 , 'annie' : 42, 'jan': 100}
|
counts = { 'chuck' : 1 , 'annie' : 42, 'jan': 100}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f090b6c005b0e76f068
|
id: 5e7b9f090b6c005b0e76f068
|
||||||
title: 'Dictionaries: Common Applications'
|
title: 'Dicionários: aplicações comuns'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: f17xPfIXct0
|
videoId: f17xPfIXct0
|
||||||
dashedName: dictionaries-common-applications
|
dashedName: dictionaries-common-applications
|
||||||
@ -10,7 +10,7 @@ dashedName: dictionaries-common-applications
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will the following code print?
|
O que será impresso pelo código a seguir?
|
||||||
|
|
||||||
```python
|
```python
|
||||||
counts = { 'quincy' : 1 , 'mrugesh' : 42, 'beau': 100, '0': 10}
|
counts = { 'quincy' : 1 , 'mrugesh' : 42, 'beau': 100, '0': 10}
|
||||||
@ -35,7 +35,7 @@ quincy
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
[will return error]
|
[retornará erro]
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f080b6c005b0e76f063
|
id: 5e7b9f080b6c005b0e76f063
|
||||||
title: Files as a Sequence
|
title: Arquivos como sequências
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: cIA0EokbaHE
|
videoId: cIA0EokbaHE
|
||||||
dashedName: files-as-a-sequence
|
dashedName: files-as-a-sequence
|
||||||
@ -8,31 +8,31 @@ dashedName: files-as-a-sequence
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise](https://www.youtube.com/watch?v=il1j4wkte2E)
|
\- [Exercício](https://www.youtube.com/watch?v=il1j4wkte2E)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What does the word 'continue' do in the middle of a loop?
|
O que faz a palavra "continue" no meio de um laço de repetição?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Skips to the code directly after the loop.
|
Pula para o código diretamente após o laço.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Skips to the next line in the code.
|
Pula para a próxima linha do código.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Skips to the next iteration of the loop.
|
Pula para a próxima iteração do laço.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Skips the next block of code.
|
Pula o próximo bloco de código.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f050b6c005b0e76f057
|
id: 5e7b9f050b6c005b0e76f057
|
||||||
title: Intermediate Expressions
|
title: Expressões intermediárias
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: dKgUaIa5ATg
|
videoId: dKgUaIa5ATg
|
||||||
dashedName: intermediate-expressions
|
dashedName: intermediate-expressions
|
||||||
@ -8,17 +8,17 @@ dashedName: intermediate-expressions
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise 1](https://youtu.be/t_4DPwsaGDY)
|
\- [Exercício 1](https://youtu.be/t_4DPwsaGDY)
|
||||||
|
|
||||||
\- [Exercise 2](https://youtu.be/wgkC8SxraAQ)
|
\- [Exercício 2](https://youtu.be/wgkC8SxraAQ)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will print out after running this code:
|
O que será impresso após a execução deste código:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
width = 15
|
width = 15
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f070b6c005b0e76f061
|
id: 5e7b9f070b6c005b0e76f061
|
||||||
title: Intermediate Strings
|
title: Strings intermediárias
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: KgT_fYLXnyk
|
videoId: KgT_fYLXnyk
|
||||||
dashedName: intermediate-strings
|
dashedName: intermediate-strings
|
||||||
@ -8,15 +8,15 @@ dashedName: intermediate-strings
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise](https://www.youtube.com/watch?v=1bSqHot-KwE)
|
\- [Exercício](https://www.youtube.com/watch?v=1bSqHot-KwE)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is the value of i in the following code?
|
Qual é o valor de i no seguinte código?
|
||||||
|
|
||||||
```python
|
```python
|
||||||
word = "bananana"
|
word = "bananana"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e6a54c358d3af90110a60a3
|
id: 5e6a54c358d3af90110a60a3
|
||||||
title: 'Introduction: Elements of Python'
|
title: 'Introdução: elementos de Python'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: aRY_xjL35v0
|
videoId: aRY_xjL35v0
|
||||||
dashedName: introduction-elements-of-python
|
dashedName: introduction-elements-of-python
|
||||||
@ -10,7 +10,7 @@ dashedName: introduction-elements-of-python
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will the following program print out:
|
Qual será a impressão do seguinte programa em Python:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
x = 43
|
x = 43
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e6a54af58d3af90110a60a1
|
id: 5e6a54af58d3af90110a60a1
|
||||||
title: 'Introduction: Hardware Architecture'
|
title: 'Introdução: arquitetura de hardware'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: H6qtjRTfSog
|
videoId: H6qtjRTfSog
|
||||||
dashedName: introduction-hardware-architecture
|
dashedName: introduction-hardware-architecture
|
||||||
@ -10,19 +10,19 @@ dashedName: introduction-hardware-architecture
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Where are your programs stored when they are running?
|
Onde seus programas são armazenados quando estão sendo executados?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Hard Drive.
|
Disco rígido.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Memory.
|
Memória.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Central Processing Unit.
|
Unidade de Processamento Central.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e6a54ba58d3af90110a60a2
|
id: 5e6a54ba58d3af90110a60a2
|
||||||
title: 'Introduction: Python as a Language'
|
title: 'Introdução: Python como uma linguagem'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: 0QeGbZNS_bY
|
videoId: 0QeGbZNS_bY
|
||||||
dashedName: introduction-python-as-a-language
|
dashedName: introduction-python-as-a-language
|
||||||
@ -10,7 +10,7 @@ dashedName: introduction-python-as-a-language
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will print out after running these two lines of code:
|
O que será impresso após a execução destas duas linhas de código:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
x = 6
|
x = 6
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e6a54a558d3af90110a60a0
|
id: 5e6a54a558d3af90110a60a0
|
||||||
title: 'Introduction: Why Program?'
|
title: 'Introdução: Por que programar?'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: 3muQV-Im3Z0
|
videoId: 3muQV-Im3Z0
|
||||||
dashedName: introduction-why-program
|
dashedName: introduction-why-program
|
||||||
@ -8,29 +8,29 @@ dashedName: introduction-why-program
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Install Python on Windows](https://youtu.be/F7mtLrYzZP8)
|
\- [Instale Python no Windows](https://youtu.be/F7mtLrYzZP8)
|
||||||
|
|
||||||
\- [Install Python on MacOS](https://youtu.be/wfLnZP-4sZw)
|
\- [Instale Python no MacOS](https://youtu.be/wfLnZP-4sZw)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Who should learn to program?
|
Quem deveria aprender a programar?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
College students.
|
Estudantes universitários.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
People who want to become software developers.
|
Pessoas que querem se tornar desenvolvedores de software.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Everyone.
|
Todos.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f070b6c005b0e76f05d
|
id: 5e7b9f070b6c005b0e76f05d
|
||||||
title: 'Iterations: Definite Loops'
|
title: 'Iterações: laços definidos'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: hiRTRAqNlpE
|
videoId: hiRTRAqNlpE
|
||||||
dashedName: iterations-definite-loops
|
dashedName: iterations-definite-loops
|
||||||
@ -10,7 +10,7 @@ dashedName: iterations-definite-loops
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
How many lines will the following code print?:
|
Quantas linhas serão impressas pelo seguinte código?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
for i in [2,1,5]:
|
for i in [2,1,5]:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f070b6c005b0e76f05e
|
id: 5e7b9f070b6c005b0e76f05e
|
||||||
title: 'Iterations: Loop Idioms'
|
title: 'Iterações: idiomas de loop'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: AelGAcoMXbI
|
videoId: AelGAcoMXbI
|
||||||
dashedName: iterations-loop-idioms
|
dashedName: iterations-loop-idioms
|
||||||
@ -10,7 +10,7 @@ dashedName: iterations-loop-idioms
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Below is code to find the smallest value from a list of values. One line has an error that will cause the code to not work as expected. Which line is it?:
|
Abaixo está o código para encontrar o menor valor de uma lista de valores. Uma linha tem um erro que fará com que o código não funcione como esperado. Qual é a linha?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
smallest = None
|
smallest = None
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f070b6c005b0e76f05f
|
id: 5e7b9f070b6c005b0e76f05f
|
||||||
title: 'Iterations: More Patterns'
|
title: 'Iterações: mais padrões'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: 9Wtqo6vha1M
|
videoId: 9Wtqo6vha1M
|
||||||
dashedName: iterations-more-patterns
|
dashedName: iterations-more-patterns
|
||||||
@ -8,15 +8,15 @@ dashedName: iterations-more-patterns
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise](https://www.youtube.com/watch?v=kjxXZQw0uPg)
|
\- [Exercício](https://www.youtube.com/watch?v=kjxXZQw0uPg)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Which of these evaluates to False?
|
Qual das alternativas será avaliada como falsa?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f060b6c005b0e76f05c
|
id: 5e7b9f060b6c005b0e76f05c
|
||||||
title: Loops and Iterations
|
title: Laços e iterações
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: dLA-szNRnUY
|
videoId: dLA-szNRnUY
|
||||||
dashedName: loops-and-iterations
|
dashedName: loops-and-iterations
|
||||||
@ -10,7 +10,7 @@ dashedName: loops-and-iterations
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will the following code print out?:
|
O que será impresso pelo código a seguir?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
n = 0
|
n = 0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f170b6c005b0e76f08b
|
id: 5e7b9f170b6c005b0e76f08b
|
||||||
title: Make a Relational Database
|
title: Construa um banco de dados relacional
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: MQ5z4bdF92U
|
videoId: MQ5z4bdF92U
|
||||||
dashedName: make-a-relational-database
|
dashedName: make-a-relational-database
|
||||||
@ -10,7 +10,7 @@ dashedName: make-a-relational-database
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What SQL command would you use to retrieve all users that have the email address `quincy@freecodecamp.org`?
|
Qual comando SQL você usaria para recuperar todos os usuários que têm o endereço de e-mail `quincy@freecodecamp.org`?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f060b6c005b0e76f059
|
id: 5e7b9f060b6c005b0e76f059
|
||||||
title: More Conditional Structures
|
title: Mais estruturas condicionais
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: HdL82tAZR20
|
videoId: HdL82tAZR20
|
||||||
dashedName: more-conditional-structures
|
dashedName: more-conditional-structures
|
||||||
@ -8,17 +8,17 @@ dashedName: more-conditional-structures
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise 1](https://www.youtube.com/watch?v=crLerB4ZxMI)
|
\- [Exercício 1](https://www.youtube.com/watch?v=crLerB4ZxMI)
|
||||||
|
|
||||||
\- [Exercise 2](https://www.youtube.com/watch?v=KJN3-7HH6yk)
|
\- [Exercício 2](https://www.youtube.com/watch?v=KJN3-7HH6yk)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Given the following code:
|
Dado o seguinte código:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
temp = "5 degrees"
|
temp = "5 degrees"
|
||||||
@ -28,7 +28,7 @@ cel = (fahr - 32.0) * 5.0 / 9.0
|
|||||||
print(cel)
|
print(cel)
|
||||||
```
|
```
|
||||||
|
|
||||||
Which line/lines should be surrounded by `try` block?
|
Qual linha/linhas devem ser incluídas em um bloco `try`?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ Which line/lines should be surrounded by `try` block?
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
None
|
Nenhuma
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0c0b6c005b0e76f072
|
id: 5e7b9f0c0b6c005b0e76f072
|
||||||
title: Networking Protocol
|
title: Protocolo de rede
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: c6vZGescaSc
|
videoId: c6vZGescaSc
|
||||||
dashedName: networking-protocol
|
dashedName: networking-protocol
|
||||||
@ -10,7 +10,7 @@ dashedName: networking-protocol
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What type of HTTP request is usually used to access a website?
|
Que tipo de requisição HTTP é geralmente usada para acessar um site?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0c0b6c005b0e76f074
|
id: 5e7b9f0c0b6c005b0e76f074
|
||||||
title: 'Networking: Text Processing'
|
title: 'Rede: processamento de texto'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: Pv_pJgVu8WI
|
videoId: Pv_pJgVu8WI
|
||||||
dashedName: networking-text-processing
|
dashedName: networking-text-processing
|
||||||
@ -10,7 +10,7 @@ dashedName: networking-text-processing
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Which type of encoding do most websites use?
|
Que tipo de codificação a maioria dos sites usa?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0d0b6c005b0e76f075
|
id: 5e7b9f0d0b6c005b0e76f075
|
||||||
title: 'Networking: Using urllib in Python'
|
title: 'Rede: usando urllib em Python'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: 7lFM1T_CxBs
|
videoId: 7lFM1T_CxBs
|
||||||
dashedName: networking-using-urllib-in-python
|
dashedName: networking-using-urllib-in-python
|
||||||
@ -10,7 +10,7 @@ dashedName: networking-using-urllib-in-python
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will the output of the following code be like?:
|
Como será a saída do seguinte código?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import urllib.request
|
import urllib.request
|
||||||
@ -21,15 +21,15 @@ for line in fhand:
|
|||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Just contents of "romeo.txt".
|
Apenas o conteúdo de "romeo.txt".
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
A header and the contents of "romeo.txt".
|
Um header e o conteúdo de "romeo.txt".
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
A header, a footer, and the contents of "romeo.txt".
|
Um header, um footer e o conteúdo de "romeo.txt".
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0d0b6c005b0e76f076
|
id: 5e7b9f0d0b6c005b0e76f076
|
||||||
title: 'Networking: Web Scraping with Python'
|
title: 'Rede: Web Scraping com Python'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: Uyioq2q4cEg
|
videoId: Uyioq2q4cEg
|
||||||
dashedName: networking-web-scraping-with-python
|
dashedName: networking-web-scraping-with-python
|
||||||
@ -8,19 +8,19 @@ dashedName: networking-web-scraping-with-python
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise: socket1](https://www.youtube.com/watch?v=dWLdI143W-g)
|
\- [Exercício: socket1](https://www.youtube.com/watch?v=dWLdI143W-g)
|
||||||
|
|
||||||
\- [Exercise: urllib](https://www.youtube.com/watch?v=8yis2DvbBkI)
|
\- [Exercício: urllib](https://www.youtube.com/watch?v=8yis2DvbBkI)
|
||||||
|
|
||||||
\- [Exercise: urllinks](https://www.youtube.com/watch?v=g9flPDG9nnY)
|
\- [Exercício: urllinks](https://www.youtube.com/watch?v=g9flPDG9nnY)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What Python library is used for parsing HTML documents and extracting data from HTML documents?
|
Qual biblioteca Python é usada para analisar documentos HTML e extrair dados de documentos HTML?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0c0b6c005b0e76f071
|
id: 5e7b9f0c0b6c005b0e76f071
|
||||||
title: Networking with Python
|
title: Redes com Python
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: _kJvneKVdNM
|
videoId: _kJvneKVdNM
|
||||||
dashedName: networking-with-python
|
dashedName: networking-with-python
|
||||||
@ -10,7 +10,7 @@ dashedName: networking-with-python
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What Python library gives access to TCP Sockets?
|
Qual biblioteca Python dá acesso a soquetes TCP?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0c0b6c005b0e76f073
|
id: 5e7b9f0c0b6c005b0e76f073
|
||||||
title: 'Networking: Write a Web Browser'
|
title: 'Redes: Escreva um navegador da Web'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: zjyT9DaAjx4
|
videoId: zjyT9DaAjx4
|
||||||
dashedName: networking-write-a-web-browser
|
dashedName: networking-write-a-web-browser
|
||||||
@ -10,7 +10,7 @@ dashedName: networking-write-a-web-browser
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What does the following code create?:
|
O que será criado pelo código abaixo?
|
||||||
|
|
||||||
```py
|
```py
|
||||||
import socket
|
import socket
|
||||||
@ -30,19 +30,19 @@ mysock.close()
|
|||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
A simple web server.
|
Um servidor web simples.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
A simple email client.
|
Um cliente de email simples.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
A simple todo list.
|
Uma lista de tarefas simples.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
A simple web browser.
|
Um navegador web simples.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f170b6c005b0e76f087
|
id: 5e7b9f170b6c005b0e76f087
|
||||||
title: Object Lifecycle
|
title: Ciclo de vida de um objeto
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: p1r3h_AMMIM
|
videoId: p1r3h_AMMIM
|
||||||
dashedName: object-lifecycle
|
dashedName: object-lifecycle
|
||||||
@ -10,7 +10,7 @@ dashedName: object-lifecycle
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will the following program print?:
|
O que será impresso pelo código a seguir?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
class PartyAnimal:
|
class PartyAnimal:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f160b6c005b0e76f086
|
id: 5e7b9f160b6c005b0e76f086
|
||||||
title: 'Objects: A Sample Class'
|
title: 'Objetos: exemplo de uma classe'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: FiABKEuaSJ8
|
videoId: FiABKEuaSJ8
|
||||||
dashedName: objects-a-sample-class
|
dashedName: objects-a-sample-class
|
||||||
@ -10,7 +10,7 @@ dashedName: objects-a-sample-class
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will the following program print?:
|
O que será impresso pelo código a seguir?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
class PartyAnimal:
|
class PartyAnimal:
|
||||||
@ -27,8 +27,8 @@ an.party()
|
|||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
So far 1
|
Até agora 1
|
||||||
So far 2
|
Até agora 2
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f170b6c005b0e76f088
|
id: 5e7b9f170b6c005b0e76f088
|
||||||
title: 'Objects: Inheritance'
|
title: 'Objetos: Herança'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: FBL3alYrxRM
|
videoId: FBL3alYrxRM
|
||||||
dashedName: objects-inheritance
|
dashedName: objects-inheritance
|
||||||
@ -10,23 +10,23 @@ dashedName: objects-inheritance
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is inheritance in object-oriented programming?
|
O que é herança na programação orientada para objetos?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
A new class created when a parent class is extended.
|
Uma nova classe criada quando a classe mãe é estendida.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
A constructed instance of a class.
|
Uma instância construída de uma classe.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
The ability to create a new class by extending an existing class.
|
A capacidade de criar uma nova classe, estendendo uma classe existente.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
A method that is called at the moment when a class is being used to construct an object.
|
Um método que é invocado no momento em que uma classe é usada para construir um objeto.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f090b6c005b0e76f067
|
id: 5e7b9f090b6c005b0e76f067
|
||||||
title: Python Dictionaries
|
title: Dicionários do Python
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: dnzvfimrRMg
|
videoId: dnzvfimrRMg
|
||||||
dashedName: python-dictionaries
|
dashedName: python-dictionaries
|
||||||
@ -10,7 +10,7 @@ dashedName: python-dictionaries
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What does dict equal after running this code?:
|
Qual será o valor de dict após executar este código?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
dict = {"Fri": 20, "Thu": 6, "Sat": 1}
|
dict = {"Fri": 20, "Thu": 6, "Sat": 1}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f060b6c005b0e76f05a
|
id: 5e7b9f060b6c005b0e76f05a
|
||||||
title: Python Functions
|
title: Funções do Python
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: 3JGF-n3tDPU
|
videoId: 3JGF-n3tDPU
|
||||||
dashedName: python-functions
|
dashedName: python-functions
|
||||||
@ -10,27 +10,27 @@ dashedName: python-functions
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is the purpose of the "def" keyword in Python?
|
Qual é a finalidade da palavra-chave "def" em Python?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
It is slang that means "The following code is really cool."
|
É uma gíria que significa "O código a seguir é muito legal."
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
It indicates the start of a function.
|
É a indicação do início de uma função.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
It indicates that the following indented section of code is to be stored for later.
|
É a indicação de que a seção de código indentada a seguir será armazenada para mais tarde.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
It indicates the start of a function, and the following indented section of code is to be stored for later.
|
É a indicação do início de uma função e de que a seção de código indentada a seguir será armazenada para mais tarde.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
None of the above.
|
Nenhuma das anteriores.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f080b6c005b0e76f064
|
id: 5e7b9f080b6c005b0e76f064
|
||||||
title: Python Lists
|
title: Listas em Python
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: Y0cvfDpYC_c
|
videoId: Y0cvfDpYC_c
|
||||||
dashedName: python-lists
|
dashedName: python-lists
|
||||||
@ -10,7 +10,7 @@ dashedName: python-lists
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is the value of x after running this code:
|
Qual é o valor x após a execução deste código:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
fruit = "banana"
|
fruit = "banana"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f160b6c005b0e76f085
|
id: 5e7b9f160b6c005b0e76f085
|
||||||
title: Python Objects
|
title: Objetos do Python
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: uJxGeTYy0us
|
videoId: uJxGeTYy0us
|
||||||
dashedName: python-objects
|
dashedName: python-objects
|
||||||
@ -10,23 +10,23 @@ dashedName: python-objects
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Which is NOT true about objects in Python?
|
Qual das alternativas NÃO é verdadeira sobre objetos no Python?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Objects get created and used.
|
Os objetos são criados e usados.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Objects are bits of code and data.
|
Objetos são pedaços de código e dados.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Objects hide detail.
|
Objetos escondem detalhes.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Objects are one of the five standard data types.
|
Os objetos são um dos cinco tipos de dados padrão.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f080b6c005b0e76f062
|
id: 5e7b9f080b6c005b0e76f062
|
||||||
title: Reading Files
|
title: Leitura de arquivos
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: Fo1tW09KIwo
|
videoId: Fo1tW09KIwo
|
||||||
dashedName: reading-files
|
dashedName: reading-files
|
||||||
@ -10,7 +10,7 @@ dashedName: reading-files
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is used to indicate a new line in a string?
|
O que é usado para indicar uma nova linha em uma string?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0b0b6c005b0e76f06f
|
id: 5e7b9f0b0b6c005b0e76f06f
|
||||||
title: 'Regular Expressions: Matching and Extracting Data'
|
title: 'Expressões regulares: correspondência e extração de dados'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: LaCZnTbQGkE
|
videoId: LaCZnTbQGkE
|
||||||
dashedName: regular-expressions-matching-and-extracting-data
|
dashedName: regular-expressions-matching-and-extracting-data
|
||||||
@ -10,7 +10,7 @@ dashedName: regular-expressions-matching-and-extracting-data
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will the following program print?:
|
O que será impresso pelo código a seguir?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import re
|
import re
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0b0b6c005b0e76f070
|
id: 5e7b9f0b0b6c005b0e76f070
|
||||||
title: 'Regular Expressions: Practical Applications'
|
title: 'Expressões regulares: aplicações práticas'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: xCjFU9G6x48
|
videoId: xCjFU9G6x48
|
||||||
dashedName: regular-expressions-practical-applications
|
dashedName: regular-expressions-practical-applications
|
||||||
@ -10,7 +10,7 @@ dashedName: regular-expressions-practical-applications
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will search for a "$" in a regular expression?
|
O que o "$" vai procurar em uma expressão regular?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ $
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
\\dollar\\
|
\\cifrão\\
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0b0b6c005b0e76f06e
|
id: 5e7b9f0b0b6c005b0e76f06e
|
||||||
title: Regular Expressions
|
title: Expressões regulares
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: Yud_COr6pZo
|
videoId: Yud_COr6pZo
|
||||||
dashedName: regular-expressions
|
dashedName: regular-expressions
|
||||||
@ -10,7 +10,7 @@ dashedName: regular-expressions
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Which regex matches only a white space character?
|
Qual regex corresponde apenas a um caractere de espaço em branco?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f180b6c005b0e76f08c
|
id: 5e7b9f180b6c005b0e76f08c
|
||||||
title: Relational Database Design
|
title: Design de banco de dados relacional
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: AqdfbrpkbHk
|
videoId: AqdfbrpkbHk
|
||||||
dashedName: relational-database-design
|
dashedName: relational-database-design
|
||||||
@ -10,7 +10,7 @@ dashedName: relational-database-design
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is the best practice for how many times a piece of string data should be stored in a database?
|
Qual é a prática recomendada com relação ao número de vezes que um dado do tipo string pode ser armazenado em um banco de dados?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f170b6c005b0e76f08a
|
id: 5e7b9f170b6c005b0e76f08a
|
||||||
title: Relational Databases and SQLite
|
title: Bancos de dados relacionais e SQLite
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: QlNod5-kFpA
|
videoId: QlNod5-kFpA
|
||||||
dashedName: relational-databases-and-sqlite
|
dashedName: relational-databases-and-sqlite
|
||||||
@ -10,23 +10,23 @@ dashedName: relational-databases-and-sqlite
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Which is NOT a primary data structure in a database?
|
Qual dessas NÃO é uma estrutura de dados primária em um banco de dados?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
index
|
índice
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
table
|
tabela
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
row
|
linha
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
column
|
coluna
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f180b6c005b0e76f08f
|
id: 5e7b9f180b6c005b0e76f08f
|
||||||
title: 'Relational Databases: Join Operation'
|
title: 'Bancos de dados relacionais: operação de join'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: jvDw3D9GKac
|
videoId: jvDw3D9GKac
|
||||||
dashedName: relational-databases-join-operation
|
dashedName: relational-databases-join-operation
|
||||||
@ -10,19 +10,19 @@ dashedName: relational-databases-join-operation
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
When using a JOIN clause in an SQL statement, what does ON do?
|
Ao usar uma instrução JOIN em uma declaração do SQL, o que faz o ON?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
It indicates what tables to perform the JOIN on.
|
Indica em quais tabelas se deve realizar o JOIN.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
It specifies the fields to use for the JOIN.
|
Especifica os campos a serem utilizados para o JOIN.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
It indicates how the two tables are to be joined.
|
Indica como as duas tabelas serão unidas.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f190b6c005b0e76f090
|
id: 5e7b9f190b6c005b0e76f090
|
||||||
title: 'Relational Databases: Many-to-many Relationships'
|
title: 'Bancos de dados relacionais: relações de muitos para muitos'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: z-SBYcvEQOc
|
videoId: z-SBYcvEQOc
|
||||||
dashedName: relational-databases-many-to-many-relationships
|
dashedName: relational-databases-many-to-many-relationships
|
||||||
@ -8,39 +8,39 @@ dashedName: relational-databases-many-to-many-relationships
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise: Email](https://www.youtube.com/watch?v=uQ3Qv1z_Vao)
|
\- [Exercício: e-mail](https://www.youtube.com/watch?v=uQ3Qv1z_Vao)
|
||||||
|
|
||||||
\- [Exercise: Roster](https://www.youtube.com/watch?v=qEkUEAz8j3o)
|
\- [Exercício: registro](https://www.youtube.com/watch?v=qEkUEAz8j3o)
|
||||||
|
|
||||||
\- [Exercise: Tracks](https://www.youtube.com/watch?v=I-E7avcPeSE)
|
\- [Exercício: trilhas](https://www.youtube.com/watch?v=I-E7avcPeSE)
|
||||||
|
|
||||||
\- [Exercise: Twfriends](https://www.youtube.com/watch?v=RZRAoBFIH6A)
|
\- [Exercício: Twfriends](https://www.youtube.com/watch?v=RZRAoBFIH6A)
|
||||||
|
|
||||||
\- [Exercise: Twspider](https://www.youtube.com/watch?v=xBaJddvJL4A)
|
\- [Exercício: Twspider](https://www.youtube.com/watch?v=xBaJddvJL4A)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Which is an example of a many-to-many relationship?
|
Qual destes é um exemplo de relação de muitos para muitos?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
teacher to student
|
professor para aluno
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
customer to order
|
cliente para pedido
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
book to pages
|
livro para páginas
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
city to country
|
cidade para país
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f180b6c005b0e76f08e
|
id: 5e7b9f180b6c005b0e76f08e
|
||||||
title: 'Relational Databases: Relationship Building'
|
title: 'Bancos de dados relacionais: construção de relacionamentos'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: CSbqczsHVnc
|
videoId: CSbqczsHVnc
|
||||||
dashedName: relational-databases-relationship-building
|
dashedName: relational-databases-relationship-building
|
||||||
@ -10,19 +10,19 @@ dashedName: relational-databases-relationship-building
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What does the INSERT command do in SQL?
|
O que o comando INSERT faz em SQL?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
It defines a new row by listing the fields we want to include followed by the values we want placed in the new row.
|
Define uma nova linha listando os campos que queremos incluir seguida dos valores que queremos que sejam colocados nessa nova linha.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
It defines a new column by listing the rows we want to include followed by the values we want placed in the new column.
|
Define uma nova coluna listando as linhas que queremos incluir seguida dos valores que queremos que sejam colocados nessa nova coluna.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
It defines a new table by listing the rows and fields we want to include followed by the values that we want placed in the table.
|
Define uma nova tabela listando as linhas e campos que queremos incluir seguidos dos valores que queremos que sejam colocados na tabela.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f180b6c005b0e76f08d
|
id: 5e7b9f180b6c005b0e76f08d
|
||||||
title: Representing Relationships in a Relational Database
|
title: Representação de relacionamentos em um banco de dados relacional
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: '-orenCNdC2Q'
|
videoId: '-orenCNdC2Q'
|
||||||
dashedName: representing-relationships-in-a-relational-database
|
dashedName: representing-relationships-in-a-relational-database
|
||||||
@ -10,23 +10,23 @@ dashedName: representing-relationships-in-a-relational-database
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is a foreign key?
|
O que é uma chave estrangeira?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
A key that is not supposed to be there.
|
Uma chave que não devia estar ali.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
A key that uses non-latin characters.
|
Uma chave que usa caracteres não latinos.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
A number that points to the primary key of an associated row in a different table.
|
Um número que aponta para a chave primária de uma linha associada em uma tabela diferente.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
A key that the "real world" might use to look up a row.
|
Uma chave que o "mundo real" poderia usar para procurar uma linha.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f090b6c005b0e76f066
|
id: 5e7b9f090b6c005b0e76f066
|
||||||
title: Strings and Lists
|
title: Strings e listas
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: lxcFa7ldCi0
|
videoId: lxcFa7ldCi0
|
||||||
dashedName: strings-and-lists
|
dashedName: strings-and-lists
|
||||||
@ -8,15 +8,15 @@ dashedName: strings-and-lists
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise](https://www.youtube.com/watch?v=-9TfJF2dwHI)
|
\- [Exercício](https://www.youtube.com/watch?v=-9TfJF2dwHI)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What does n equal in this code?
|
O que representa n neste código?
|
||||||
|
|
||||||
```python
|
```python
|
||||||
words = 'His e-mail is q-lar@freecodecamp.org'
|
words = 'His e-mail is q-lar@freecodecamp.org'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f070b6c005b0e76f060
|
id: 5e7b9f070b6c005b0e76f060
|
||||||
title: Strings in Python
|
title: Strings em Python
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: LYZj207fKpQ
|
videoId: LYZj207fKpQ
|
||||||
dashedName: strings-in-python
|
dashedName: strings-in-python
|
||||||
@ -10,7 +10,7 @@ dashedName: strings-in-python
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will the following code print?:
|
O que será impresso pelo código a seguir?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
for n in "banana":
|
for n in "banana":
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0a0b6c005b0e76f06c
|
id: 5e7b9f0a0b6c005b0e76f06c
|
||||||
title: The Tuples Collection
|
title: A coleção de tuplas
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: 3Lxpladfh2k
|
videoId: 3Lxpladfh2k
|
||||||
dashedName: the-tuples-collection
|
dashedName: the-tuples-collection
|
||||||
@ -10,7 +10,7 @@ dashedName: the-tuples-collection
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will the following code print?:
|
O que será impresso pelo código a seguir?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
d = dict()
|
d = dict()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0e0b6c005b0e76f07a
|
id: 5e7b9f0e0b6c005b0e76f07a
|
||||||
title: Using Web Services
|
title: Utilização de serviços da web
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: oNl1OVDPGKE
|
videoId: oNl1OVDPGKE
|
||||||
dashedName: using-web-services
|
dashedName: using-web-services
|
||||||
@ -10,27 +10,27 @@ dashedName: using-web-services
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What are the two most common ways to send data over the internet?
|
Quais são as duas formas mais comuns de enviar dados pela internet?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
JSON and TXT
|
JSON e TXT
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
JSON and XML
|
JSON e XML
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
XML and TXT
|
XML e TXT
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
XML and PHP
|
XML e PHP
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
PHP and TXT
|
PHP e TXT
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f050b6c005b0e76f056
|
id: 5e7b9f050b6c005b0e76f056
|
||||||
title: 'Variables, Expressions, and Statements'
|
title: 'Variáveis, expressões e declarações'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: nELR-uyyrok
|
videoId: nELR-uyyrok
|
||||||
dashedName: variables-expressions-and-statements
|
dashedName: variables-expressions-and-statements
|
||||||
@ -10,7 +10,7 @@ dashedName: variables-expressions-and-statements
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is the symbol used in an assignment statement?
|
Qual é o símbolo usado em uma instrução da atribuição?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f690b6c005b0e76f095
|
id: 5e7b9f690b6c005b0e76f095
|
||||||
title: Visualizing Data with Python
|
title: Visualização de dados com Python
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: e3lydkH0prw
|
videoId: e3lydkH0prw
|
||||||
dashedName: visualizing-data-with-python
|
dashedName: visualizing-data-with-python
|
||||||
@ -10,27 +10,27 @@ dashedName: visualizing-data-with-python
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Most data needs to be \_\_\_\_\_\_ before using it.
|
A maior parte dos dados precisa ser \_\_\_\_\_\_ antes de ser usada.
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
converted to JSON format
|
convertida para o formato JSON
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
graphed
|
transformada em gráfico
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
cleaned
|
limpa
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
memorized
|
memorizada
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
turned into song
|
transformada em música
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f150b6c005b0e76f080
|
id: 5e7b9f150b6c005b0e76f080
|
||||||
title: 'Web Services: API Rate Limiting and Security'
|
title: 'Serviços da web: Limitador de taxa de API e segurança'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: pI-g0lI8ngs
|
videoId: pI-g0lI8ngs
|
||||||
dashedName: web-services-api-rate-limiting-and-security
|
dashedName: web-services-api-rate-limiting-and-security
|
||||||
@ -8,37 +8,37 @@ dashedName: web-services-api-rate-limiting-and-security
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
More resources:
|
Mais recursos:
|
||||||
|
|
||||||
\- [Exercise: GeoJSON](https://www.youtube.com/watch?v=TJGJN0T8tak)
|
\- [Exercício: GeoJSON](https://www.youtube.com/watch?v=TJGJN0T8tak)
|
||||||
|
|
||||||
\- [Exercise: JSON](https://www.youtube.com/watch?v=vTmw5RtfGMY)
|
\- [Exercício: JSON](https://www.youtube.com/watch?v=vTmw5RtfGMY)
|
||||||
|
|
||||||
\- [Exercise: Twitter](https://www.youtube.com/watch?v=2c7YwhvpCro)
|
\- [Exercício: Twitter](https://www.youtube.com/watch?v=2c7YwhvpCro)
|
||||||
|
|
||||||
\- [Exercise: XML](https://www.youtube.com/watch?v=AopYOlDa-vY)
|
\- [Exercício: XML](https://www.youtube.com/watch?v=AopYOlDa-vY)
|
||||||
|
|
||||||
# --question--
|
# --question--
|
||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
When making a request from the Twitter API, what information must always be sent with the request?
|
Ao fazer uma solicitação a partir da API do Twitter, quais informações devem ser sempre enviadas com ela?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Twitter username
|
Nome de usuário do Twitter
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
date range
|
intervalo de dados
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
search term
|
termo de pesquisa
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
key
|
chave
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f150b6c005b0e76f07f
|
id: 5e7b9f150b6c005b0e76f07f
|
||||||
title: 'Web Services: APIs'
|
title: 'Serviços da web: APIs'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: oUNn1psfBJg
|
videoId: oUNn1psfBJg
|
||||||
dashedName: web-services-apis
|
dashedName: web-services-apis
|
||||||
@ -10,23 +10,23 @@ dashedName: web-services-apis
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What does API stand for?
|
O que significa API?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Application Portable Intelligence
|
Inteligência portátil de aplicativos
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Associate Programming International
|
Programação associada internacional
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Application Program Interface
|
Interface do programa de aplicação
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Action Portable Interface
|
Interface portátil de ação
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f140b6c005b0e76f07d
|
id: 5e7b9f140b6c005b0e76f07d
|
||||||
title: 'Web Services: JSON'
|
title: 'Serviços da web: JSON'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: ZJE-U56BppM
|
videoId: ZJE-U56BppM
|
||||||
dashedName: web-services-json
|
dashedName: web-services-json
|
||||||
@ -10,7 +10,7 @@ dashedName: web-services-json
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What will the following code print?:
|
O que será impresso pelo código a seguir?:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import json
|
import json
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f140b6c005b0e76f07e
|
id: 5e7b9f140b6c005b0e76f07e
|
||||||
title: 'Web Services: Service Oriented Approach'
|
title: 'Serviços da web: Abordagem orientada a serviços'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: muerlsCHExI
|
videoId: muerlsCHExI
|
||||||
dashedName: web-services-service-oriented-approach
|
dashedName: web-services-service-oriented-approach
|
||||||
@ -10,19 +10,19 @@ dashedName: web-services-service-oriented-approach
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
With a services oriented approach to developing web apps, where is the data located?
|
Com uma abordagem orientada a serviços para o desenvolvimento de aplicativos da web, onde os dados estarão localizados?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Spread across many computer systems connected via the internet or internal network.
|
Espalhados por vários sistemas de computadores conectados pela Internet ou pela rede interna.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Within different services on the main web server.
|
Em diferentes serviços no servidor principal da web.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
On a separate database server.
|
Em um servidor de banco de dados separado.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0e0b6c005b0e76f07c
|
id: 5e7b9f0e0b6c005b0e76f07c
|
||||||
title: 'Web Services: XML Schema'
|
title: 'Serviços da web: Schema XML'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: yWU9kTxW-nc
|
videoId: yWU9kTxW-nc
|
||||||
dashedName: web-services-xml-schema
|
dashedName: web-services-xml-schema
|
||||||
@ -10,19 +10,19 @@ dashedName: web-services-xml-schema
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is XSD?
|
O que é XSD?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
The W3C Schema specification for XML.
|
A especificação do schema do W3C para XML.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
The standard JSON schema from MOZ.
|
O schema padrão de JSON da MOZ.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Extensible Situational Driver
|
Driver situacional extensível
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f0e0b6c005b0e76f07b
|
id: 5e7b9f0e0b6c005b0e76f07b
|
||||||
title: 'Web Services: XML'
|
title: 'Serviços da web: XML'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: _pZ0srbg7So
|
videoId: _pZ0srbg7So
|
||||||
dashedName: web-services-xml
|
dashedName: web-services-xml
|
||||||
@ -10,7 +10,7 @@ dashedName: web-services-xml
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is wrong with the following XML?:
|
O que há de errado com o XML a seguir?
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<person>
|
<person>
|
||||||
@ -23,19 +23,19 @@ What is wrong with the following XML?:
|
|||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Email tag is missing closing tag.
|
A tag de e-mail está sem a tag de fechamento.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Spacing will cause XML to be invalid.
|
O espaçamento fará com que o XML seja inválido.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Phone tag is missing closing tag.
|
A tag phone está sem a tag de fechamento.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Plain text should be encoded using UTF-8.
|
O texto sem formatação será codificado usando UTF-8.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e7b9f090b6c005b0e76f065
|
id: 5e7b9f090b6c005b0e76f065
|
||||||
title: Working with Lists
|
title: Trabalhando com listas
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: lCnHfTHkhbE
|
videoId: lCnHfTHkhbE
|
||||||
dashedName: working-with-lists
|
dashedName: working-with-lists
|
||||||
@ -10,7 +10,7 @@ dashedName: working-with-lists
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Which method is used to add an item at the end of a list?
|
Qual método é usado para adicionar um item no final de uma lista?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: bd7156d8c242eddfaeb5bd13
|
id: bd7156d8c242eddfaeb5bd13
|
||||||
title: Build a freeCodeCamp Forum Homepage
|
title: Construa uma página inicial do fórum do freeCodeCamp
|
||||||
challengeType: 3
|
challengeType: 3
|
||||||
forumTopicId: 302349
|
forumTopicId: 302349
|
||||||
dashedName: build-a-freecodecamp-forum-homepage
|
dashedName: build-a-freecodecamp-forum-homepage
|
||||||
@ -8,21 +8,21 @@ dashedName: build-a-freecodecamp-forum-homepage
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
**Objective:** Build a [CodePen.io](https://codepen.io) app that is functionally similar to this: <https://codepen.io/freeCodeCamp/full/JqdoMV>.
|
**Objetivo:** criar uma aplicação no [CodePen.io](https://codepen.io) que tenha função semelhante a esta: <https://codepen.io/freeCodeCamp/full/JqdoMV>.
|
||||||
|
|
||||||
Fulfill the below [user stories](https://en.wikipedia.org/wiki/User_story). Use whichever libraries or APIs you need. Give it your own personal style.
|
Atenda às [especificações de usuário abaixo](https://en.wikipedia.org/wiki/User_story). Use quaisquer bibliotecas ou APIs de que você precisar. Dê a ele o seu próprio estilo pessoal.
|
||||||
|
|
||||||
**User Story:** I can see a list of the most recent posts on the freeCodeCamp forum.
|
**História de usuário:** Posso ver uma lista dos posts mais recentes do fórum freeCodeCamp.
|
||||||
|
|
||||||
**User Story:** For each topic, I can see the title and a list of links to users who have recently posted in it.
|
**Especificação de usuário:** para cada tópico, posso ver o título e uma lista de links para usuários que recentemente postaram nele.
|
||||||
|
|
||||||
**User Story:** I can see the number of replies and views that each topic has had, and a timestamp of when the topic was last active.
|
**Especificação de usuário:** posso ver o número de respostas e visualizações que cada tópico teve, e um carimbo de data/hora de quando o tópico foi ativo pela última vez.
|
||||||
|
|
||||||
**Hint:** To get the 30 most recent forum posts: <https://forum-proxy.freecodecamp.rocks/latest>.
|
**Dica:** Para obter os 30 posts mais recentes do fórum: <https://forum-proxy.freecodecamp.rocks/latest>.
|
||||||
|
|
||||||
When you are finished, include a link to your project on CodePen and click the "I've completed this challenge" button.
|
Quando terminar, inclua um link para o seu projeto no CodePen e clique no botão "Eu completei esse desafio".
|
||||||
|
|
||||||
You can get feedback on your project by sharing it on the [freeCodeCamp forum](https://forum.freecodecamp.org/c/project-feedback/409).
|
Você pode obter feedback sobre o seu projeto compartilhando-o no [fórum freeCodeCamp](https://forum.freecodecamp.org/c/project-feedback/409).
|
||||||
|
|
||||||
# --solutions--
|
# --solutions--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e9a0e9ef99a403d019610cc
|
id: 5e9a0e9ef99a403d019610cc
|
||||||
title: Deep Learning Demystified
|
title: Aprendizado profundo desmistificado
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: bejQ-W9BGJg
|
videoId: bejQ-W9BGJg
|
||||||
dashedName: deep-learning-demystified
|
dashedName: deep-learning-demystified
|
||||||
@ -10,23 +10,23 @@ dashedName: deep-learning-demystified
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
How should you assign weights to input neurons before training your network for the first time?
|
Como você deve atribuir pesos para inserir neurônios antes de treinar sua rede pela primeira vez?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
From smallest to largest.
|
De menor para maior.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Completely randomly.
|
De modo completamente aleatório.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Alphabetically.
|
Alfabeticamente.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
None of the above.
|
Nenhuma das anteriores.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e9a0e9ef99a403d019610cd
|
id: 5e9a0e9ef99a403d019610cd
|
||||||
title: How Convolutional Neural Networks work
|
title: Como funcionam as Redes Neurais Convolucionais
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: Y5M7KH4A4n4
|
videoId: Y5M7KH4A4n4
|
||||||
dashedName: how-convolutional-neural-networks-work
|
dashedName: how-convolutional-neural-networks-work
|
||||||
@ -10,19 +10,19 @@ dashedName: how-convolutional-neural-networks-work
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
When are Convolutional Neural Networks not useful?
|
Quando as redes neurais convolucionais não são úteis?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
If your data can't be made to look like an image, or if you can rearrange elements of your data and it's still just as useful.
|
Se os dados não puderem parecer com uma imagem, ou se você puder reorganizar os elementos dos dados e ainda assim eles continuarem com a mesma utilidade.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
If your data is made up of different 2D or 3D images.
|
Se seus dados forem compostos por diferentes imagens 2D ou 3D.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
If your data is text or sound based.
|
Se seus dados forem baseados em texto ou som.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e9a0e9ef99a403d019610ca
|
id: 5e9a0e9ef99a403d019610ca
|
||||||
title: How Deep Neural Networks Work
|
title: Como as redes neurais profundas funcionam
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: zvalnHWGtx4
|
videoId: zvalnHWGtx4
|
||||||
dashedName: how-deep-neural-networks-work
|
dashedName: how-deep-neural-networks-work
|
||||||
@ -10,19 +10,19 @@ dashedName: how-deep-neural-networks-work
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Why is it better to calculate the gradient (slope) directly rather than numerically?
|
Por que é melhor calcular o gradiente (curva) diretamente ao invés de numericamente?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
It is computationally expensive to go back through the entire neural network and adjust the weights for each layer of the neural network.
|
É computacionalmente caro voltar através de toda a rede neural e ajustar os pesos para cada camada da rede neural.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
It is more accurate.
|
É mais preciso.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
There is no difference between the two methods.
|
Não existe qualquer diferença entre os dois métodos.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e9a0e9ef99a403d019610cb
|
id: 5e9a0e9ef99a403d019610cb
|
||||||
title: Recurrent Neural Networks RNN and Long Short Term Memory LSTM
|
title: Redes neurais recorrentes RNN e a memória de curto e longo prazo LSTM
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: UVimlsy9eW0
|
videoId: UVimlsy9eW0
|
||||||
dashedName: recurrent-neural-networks-rnn-and-long-short-term-memory-lstm
|
dashedName: recurrent-neural-networks-rnn-and-long-short-term-memory-lstm
|
||||||
@ -10,19 +10,19 @@ dashedName: recurrent-neural-networks-rnn-and-long-short-term-memory-lstm
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What are the main neural network components that make up a Long Short Term Memory network?
|
Quais são os principais componentes de rede neural que compõem uma rede de memória de longo e curto prazo?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
New information and prediction.
|
Novas informações e previsão.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Prediction, collected possibilities, and selection.
|
Previsão, possibilidades coletadas e seleção.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Prediction, ignoring, forgetting, and selection.
|
Previsão, capacidade de ignorar, capacidade de esquecer e seleção.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e46f8e3ac417301a38fb92f
|
id: 5e46f8e3ac417301a38fb92f
|
||||||
title: Book Recommendation Engine using KNN
|
title: Mecanismo de recomendação de livros usando KNN
|
||||||
challengeType: 10
|
challengeType: 10
|
||||||
forumTopicId: 462378
|
forumTopicId: 462378
|
||||||
dashedName: book-recommendation-engine-using-knn
|
dashedName: book-recommendation-engine-using-knn
|
||||||
@ -8,19 +8,19 @@ dashedName: book-recommendation-engine-using-knn
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
In this challenge, you will create a book recommendation algorithm using K-Nearest Neighbors.
|
Neste desafio, você criará um algoritmo de recomendação de livros usando os vizinhos K-mais próximos.
|
||||||
|
|
||||||
You will use the Book-Crossings dataset. This dataset contains 1.1 million ratings (scale of 1-10) of 270,000 books by 90,000 users.
|
Você usará o conjunto de dados do Book-Crossings. Este conjunto de dados contém 1,1 milhão de classificações (na escala de 1-10) de 270.000 livros por 90.000 usuários.
|
||||||
|
|
||||||
You can access [the full project instructions and starter code on Google Colaboratory](https://colab.research.google.com/github/freeCodeCamp/boilerplate-book-recommendation-engine/blob/master/fcc_book_recommendation_knn.ipynb).
|
Você pode acessar [as instruções completas do projeto e o código inicial no Google Colaboratory](https://colab.research.google.com/github/freeCodeCamp/boilerplate-book-recommendation-engine/blob/master/fcc_book_recommendation_knn.ipynb).
|
||||||
|
|
||||||
After going to that link, create a copy of the notebook either in your own account or locally. Once you complete the project and it passes the test (included at that link), submit your project link below. If you are submitting a Google Colaboratory link, make sure to turn on link sharing for "anyone with the link."
|
Depois de acessar esse link, crie uma cópia do notebook em sua própria conta ou localmente. Depois que você completar o projeto e que ele passar pelo teste (incluído nesse link), envie o link do projeto abaixo. Se você estiver enviando um link do Google Colaboratory, certifique-se de ativar o compartilhamento de links para "qualquer um que tenha o link".
|
||||||
|
|
||||||
We are still developing the interactive instructional content for the machine learning curriculum. For now, you can go through the video challenges in this certification. You may also have to seek out additional learning resources, similar to what you would do when working on a real-world project.
|
Ainda estamos desenvolvendo o conteúdo instrucional interativo do currículo de aprendizagem de máquina. Por enquanto, você pode ver os desafios de vídeo desta certificação. Você também pode ter que procurar recursos adicionais de aprendizagem, do mesmo modo que você faria ao trabalhar em um projeto do mundo real.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
It should pass all Python tests.
|
Ele deve passar em todos os testes do Python.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e46f8dcac417301a38fb92e
|
id: 5e46f8dcac417301a38fb92e
|
||||||
title: Cat and Dog Image Classifier
|
title: Classificador de imagens de gatos e cachorros
|
||||||
challengeType: 10
|
challengeType: 10
|
||||||
forumTopicId: 462377
|
forumTopicId: 462377
|
||||||
dashedName: cat-and-dog-image-classifier
|
dashedName: cat-and-dog-image-classifier
|
||||||
@ -8,17 +8,17 @@ dashedName: cat-and-dog-image-classifier
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
For this challenge, you will use TensorFlow 2.0 and Keras to create a convolutional neural network that correctly classifies images of cats and dogs with at least 63% accuracy.
|
Para este desafio, você usará o TensorFlow 2.0 e o Keras para criar uma rede neural convolucional que classifique corretamente imagens de gatos e cães com, pelo menos, 63% de precisão.
|
||||||
|
|
||||||
You can access [the full project instructions and starter code on Google Colaboratory](https://colab.research.google.com/github/freeCodeCamp/boilerplate-cat-and-dog-image-classifier/blob/master/fcc_cat_dog.ipynb).
|
Você pode acessar [as instruções completas do projeto e o código inicial no Google Colaboratory](https://colab.research.google.com/github/freeCodeCamp/boilerplate-cat-and-dog-image-classifier/blob/master/fcc_cat_dog.ipynb).
|
||||||
|
|
||||||
After going to that link, create a copy of the notebook either in your own account or locally. Once you complete the project and it passes the test (included at that link), submit your project link below. If you are submitting a Google Colaboratory link, make sure to turn on link sharing for "anyone with the link."
|
Depois de acessar esse link, crie uma cópia do notebook em sua própria conta ou localmente. Depois que você completar o projeto e que ele passar pelo teste (incluído nesse link), envie o link do projeto abaixo. Se você estiver enviando um link do Google Colaboratory, certifique-se de ativar o compartilhamento de links para "qualquer um que tenha o link".
|
||||||
|
|
||||||
We are still developing the interactive instructional content for the machine learning curriculum. For now, you can go through the video challenges in this certification. You may also have to seek out additional learning resources, similar to what you would do when working on a real-world project.
|
Ainda estamos desenvolvendo o conteúdo instrucional interativo do currículo de aprendizagem de máquina. Por enquanto, você pode ver os desafios de vídeo desta certificação. Você também pode ter que procurar recursos adicionais de aprendizagem, do mesmo modo que você faria ao trabalhar em um projeto do mundo real.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
It should pass all Python tests.
|
Ele deve passar em todos os testes do Python.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e46f8edac417301a38fb930
|
id: 5e46f8edac417301a38fb930
|
||||||
title: Linear Regression Health Costs Calculator
|
title: Calculadora de custos de saúde de regressão linear
|
||||||
challengeType: 10
|
challengeType: 10
|
||||||
forumTopicId: 462379
|
forumTopicId: 462379
|
||||||
dashedName: linear-regression-health-costs-calculator
|
dashedName: linear-regression-health-costs-calculator
|
||||||
@ -8,19 +8,19 @@ dashedName: linear-regression-health-costs-calculator
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
In this challenge, you will predict healthcare costs using a regression algorithm.
|
Neste desafio, você preverá os custos de saúde usando um algoritmo de regressão.
|
||||||
|
|
||||||
You are given a dataset that contains information about different people including their healthcare costs. Use the data to predict healthcare costs based on new data.
|
Você recebe um conjunto de dados que contém informações sobre diferentes pessoas, incluindo seus custos de saúde. Use os dados para prever custos de saúde com base em novos dados.
|
||||||
|
|
||||||
You can access [the full project instructions and starter code on Google Colaboratory](https://colab.research.google.com/github/freeCodeCamp/boilerplate-linear-regression-health-costs-calculator/blob/master/fcc_predict_health_costs_with_regression.ipynb).
|
Você pode acessar [as instruções completas do projeto e o código inicial no Google Colaboratory](https://colab.research.google.com/github/freeCodeCamp/boilerplate-linear-regression-health-costs-calculator/blob/master/fcc_predict_health_costs_with_regression.ipynb).
|
||||||
|
|
||||||
After going to that link, create a copy of the notebook either in your own account or locally. Once you complete the project and it passes the test (included at that link), submit your project link below. If you are submitting a Google Colaboratory link, make sure to turn on link sharing for "anyone with the link."
|
Depois de acessar esse link, crie uma cópia do notebook em sua própria conta ou localmente. Depois que você completar o projeto e que ele passar pelo teste (incluído nesse link), envie o link do projeto abaixo. Se você estiver enviando um link do Google Colaboratory, certifique-se de ativar o compartilhamento de links para "qualquer um que tenha o link".
|
||||||
|
|
||||||
We are still developing the interactive instructional content for the machine learning curriculum. For now, you can go through the video challenges in this certification. You may also have to seek out additional learning resources, similar to what you would do when working on a real-world project.
|
Ainda estamos desenvolvendo o conteúdo instrucional interativo do currículo de aprendizagem de máquina. Por enquanto, você pode ver os desafios de vídeo desta certificação. Você também pode ter que procurar recursos adicionais de aprendizagem, do mesmo modo que você faria ao trabalhar em um projeto do mundo real.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
It should pass all Python tests.
|
Ele deve passar em todos os testes do Python.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e46f8edac417301a38fb931
|
id: 5e46f8edac417301a38fb931
|
||||||
title: Neural Network SMS Text Classifier
|
title: Classificador de texto SMS baseado em rede neural
|
||||||
challengeType: 10
|
challengeType: 10
|
||||||
forumTopicId: 462380
|
forumTopicId: 462380
|
||||||
dashedName: neural-network-sms-text-classifier
|
dashedName: neural-network-sms-text-classifier
|
||||||
@ -8,17 +8,17 @@ dashedName: neural-network-sms-text-classifier
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
In this challenge, you need to create a machine learning model that will classify SMS messages as either "ham" or "spam". A "ham" message is a normal message sent by a friend. A "spam" message is an advertisement or a message sent by a company.
|
Neste desafio, você precisa criar um modelo de aprendizagem de máquina que classificará as mensagens de SMS como "ham" ou "spam". Uma mensagem de "ham" é uma mensagem normal enviada por um amigo. Uma mensagem de "spam" é um anúncio ou uma mensagem enviada por uma empresa.
|
||||||
|
|
||||||
You can access [the full project instructions and starter code on Google Colaboratory](https://colab.research.google.com/github/freeCodeCamp/boilerplate-neural-network-sms-text-classifier/blob/master/fcc_sms_text_classification.ipynb).
|
Você pode acessar [as instruções completas do projeto e o código inicial no Google Colaboratory](https://colab.research.google.com/github/freeCodeCamp/boilerplate-neural-network-sms-text-classifier/blob/master/fcc_sms_text_classification.ipynb).
|
||||||
|
|
||||||
After going to that link, create a copy of the notebook either in your own account or locally. Once you complete the project and it passes the test (included at that link), submit your project link below. If you are submitting a Google Colaboratory link, make sure to turn on link sharing for "anyone with the link."
|
Depois de acessar esse link, crie uma cópia do notebook em sua própria conta ou localmente. Depois que você completar o projeto e que ele passar pelo teste (incluído nesse link), envie o link do projeto abaixo. Se você estiver enviando um link do Google Colaboratory, certifique-se de ativar o compartilhamento de links para "qualquer um que tenha o link".
|
||||||
|
|
||||||
We are still developing the interactive instructional content for the machine learning curriculum. For now, you can go through the video challenges in this certification. You may also have to seek out additional learning resources, similar to what you would do when working on a real-world project.
|
Ainda estamos desenvolvendo o conteúdo instrucional interativo do currículo de aprendizagem de máquina. Por enquanto, você pode ver os desafios de vídeo desta certificação. Você também pode ter que procurar recursos adicionais de aprendizagem, do mesmo modo que você faria ao trabalhar em um projeto do mundo real.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
It should pass all Python tests.
|
Ele deve passar em todos os testes do Python.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e46f8d6ac417301a38fb92d
|
id: 5e46f8d6ac417301a38fb92d
|
||||||
title: Rock Paper Scissors
|
title: Pedra, papel ou tesoura
|
||||||
challengeType: 10
|
challengeType: 10
|
||||||
forumTopicId: 462376
|
forumTopicId: 462376
|
||||||
dashedName: rock-paper-scissors
|
dashedName: rock-paper-scissors
|
||||||
@ -8,17 +8,17 @@ dashedName: rock-paper-scissors
|
|||||||
|
|
||||||
# --description--
|
# --description--
|
||||||
|
|
||||||
For this challenge, you will create a program to play Rock, Paper, Scissors. A program that picks at random will usually win 50% of the time. To pass this challenge your program must play matches against four different bots, winning at least 60% of the games in each match.
|
Para este desafio, você criará um programa para jogar Pedra, Papel e Tesoura. Um programa que escolhe aleatoriamente geralmente ganha 50% das vezes. Para passar neste desafio, o programa deve jogar partidas contra quatro bots diferentes, ganhando pelo menos 60% dos jogos em cada partida.
|
||||||
|
|
||||||
You can access [the full project description and starter code on Replit](https://replit.com/github/freeCodeCamp/boilerplate-rock-paper-scissors).
|
Você pode acessar [a descrição completa do projeto e o código inicial no Replit](https://replit.com/github/freeCodeCamp/boilerplate-rock-paper-scissors).
|
||||||
|
|
||||||
After going to that link, fork the project. Once you complete the project based on the instructions in 'README.md', submit your project link below.
|
Depois de ir para esse link, faça fork no projeto. Depois que você completar o projeto com base nas instruções do 'README.md', envie o link do seu projeto abaixo.
|
||||||
|
|
||||||
We are still developing the interactive instructional part of the machine learning curriculum. For now, you will have to use other resources to learn how to pass this challenge.
|
Ainda estamos desenvolvendo a parte instrucional interativa do currículo de aprendizagem de máquina. Por enquanto, você terá que usar outros recursos para aprender a vencer este desafio.
|
||||||
|
|
||||||
# --hints--
|
# --hints--
|
||||||
|
|
||||||
It should pass all Python tests.
|
Ele deve passar em todos os testes do Python.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72da6
|
id: 5e8f2f13c4cdbe86b5c72da6
|
||||||
title: Conclusion
|
title: Conclusão
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: LMNub5frQi4
|
videoId: LMNub5frQi4
|
||||||
dashedName: conclusion
|
dashedName: conclusion
|
||||||
@ -10,19 +10,19 @@ dashedName: conclusion
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Most people that are experts in AI or machine learning usually...:
|
A maioria das pessoas que são especialistas em IA ou em aprendizagem de máquina normalmente...:
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
have one specialization.
|
tem uma especialização.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
have many specializations.
|
tem muitas especializações.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
have a deep understanding of many different frameworks.
|
compreendem profundamente muitos frameworks diferentes.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d99
|
id: 5e8f2f13c4cdbe86b5c72d99
|
||||||
title: 'Convolutional Neural Networks: Evaluating the Model'
|
title: 'Redes neurais convolucionais: avaliando o modelo'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: eCATNvwraXg
|
videoId: eCATNvwraXg
|
||||||
dashedName: convolutional-neural-networks-evaluating-the-model
|
dashedName: convolutional-neural-networks-evaluating-the-model
|
||||||
@ -10,19 +10,19 @@ dashedName: convolutional-neural-networks-evaluating-the-model
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is **not** a good way to increase the accuracy of a convolutional neural network?
|
Qual destas **não** é uma boa maneira de aumentar a precisão de uma rede neural convolucional?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Augmenting the data you already have.
|
Aumentar os dados que você já tem.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Using a pre-trained model.
|
Usar um modelo pré-treinado.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Using your test data to retrain the model.
|
Usar seus dados de teste para treinar o modelo novamente.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d9a
|
id: 5e8f2f13c4cdbe86b5c72d9a
|
||||||
title: 'Convolutional Neural Networks: Picking a Pretrained Model'
|
title: 'Redes neurais convolucionais: Escolhendo um modelo pré-treinado'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: h1XUt1AgIOI
|
videoId: h1XUt1AgIOI
|
||||||
dashedName: convolutional-neural-networks-picking-a-pretrained-model
|
dashedName: convolutional-neural-networks-picking-a-pretrained-model
|
||||||
@ -10,7 +10,7 @@ dashedName: convolutional-neural-networks-picking-a-pretrained-model
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Fill in the blanks below to use Google's pre-trained MobileNet V2 model as a base for a convolutional neural network:
|
Preencha os espaços em branco abaixo para usar o modelo MobileNet V2 pré-treinado do Google como base para uma rede neural convolucional:
|
||||||
|
|
||||||
```py
|
```py
|
||||||
base_model = tf.__A__.applications.__B__(input_shape=(160, 160, 3),
|
base_model = tf.__A__.applications.__B__(input_shape=(160, 160, 3),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d97
|
id: 5e8f2f13c4cdbe86b5c72d97
|
||||||
title: 'Convolutional Neural Networks: The Convolutional Layer'
|
title: 'Redes Neurais Convolucionais: A camada convolucional'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: LrdmcQpTyLw
|
videoId: LrdmcQpTyLw
|
||||||
dashedName: convolutional-neural-networks-the-convolutional-layer
|
dashedName: convolutional-neural-networks-the-convolutional-layer
|
||||||
@ -10,19 +10,19 @@ dashedName: convolutional-neural-networks-the-convolutional-layer
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What are the three main properties of each convolutional layer?
|
Quais são as três propriedades principais de cada camada convolucional?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Input size, the number of filters, and the sample size of the filters.
|
Tamanho de entrada, o número de filtros e o tamanho da amostra dos filtros.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Input size, input dimensions, and the color values of the input.
|
Tamanho de entrada, dimensões de entrada e os valores de cor da entrada.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Input size, input padding, and stride.
|
Tamanho de entrada, preenchimento de entrada e distância do passo.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d96
|
id: 5e8f2f13c4cdbe86b5c72d96
|
||||||
title: Convolutional Neural Networks
|
title: Redes Neurais Convolucionais
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: _1kTP7uoU9E
|
videoId: _1kTP7uoU9E
|
||||||
dashedName: convolutional-neural-networks
|
dashedName: convolutional-neural-networks
|
||||||
@ -10,19 +10,19 @@ dashedName: convolutional-neural-networks
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Dense neural networks analyze input on a global scale and recognize patterns in specific areas. Convolutional neural networks...:
|
As redes neurais densas analisam a entrada em uma escala global e reconhecem padrões em áreas específicas. Redes Neurais Convolucionais...:
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
also analyze input globally and extract features from specific areas.
|
também analisam entradas globalmente e extraem recursos de áreas específicas.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
do not work well for image classification or object detection.
|
não funcionam bem para a classificação de imagens ou para a detecção de objetos.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
scan through the entire input a little at a time and learn local patterns.
|
escaneiam a entrada inteira um pouco por vez e aprendem os padrões locais.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d8e
|
id: 5e8f2f13c4cdbe86b5c72d8e
|
||||||
title: 'Core Learning Algorithms: Building the Model'
|
title: 'Algoritmos de aprendizagem principais: construindo o modelo'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: 5wHw8BTd2ZQ
|
videoId: 5wHw8BTd2ZQ
|
||||||
dashedName: core-learning-algorithms-building-the-model
|
dashedName: core-learning-algorithms-building-the-model
|
||||||
@ -10,7 +10,7 @@ dashedName: core-learning-algorithms-building-the-model
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What kind of estimator/model does TensorFlow recommend using for classification?
|
Que tipo de estimador/modelo o TensorFlow recomenda usar para classificação?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d8d
|
id: 5e8f2f13c4cdbe86b5c72d8d
|
||||||
title: 'Core Learning Algorithms: Classification'
|
title: 'Algoritmos de aprendizagem principais: classificação'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: qFF7ZQNvK9E
|
videoId: qFF7ZQNvK9E
|
||||||
dashedName: core-learning-algorithms-classification
|
dashedName: core-learning-algorithms-classification
|
||||||
@ -10,19 +10,19 @@ dashedName: core-learning-algorithms-classification
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is classification?
|
O que é classificação?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
The process of separating data points into different classes.
|
O processo de separação dos pontos de dados em diferentes classes.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Predicting a numeric value or forecast based on independent and dependent variables.
|
A previsão de um valor numérico ou previsão baseada em variáveis dependentes e independentes.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
None of the above.
|
Nenhuma das anteriores.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d8f
|
id: 5e8f2f13c4cdbe86b5c72d8f
|
||||||
title: 'Core Learning Algorithms: Clustering'
|
title: 'Algoritmos de aprendizagem principais: agrupamento em clusters'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: 8sqIaHc9Cz4
|
videoId: 8sqIaHc9Cz4
|
||||||
dashedName: core-learning-algorithms-clustering
|
dashedName: core-learning-algorithms-clustering
|
||||||
@ -10,27 +10,27 @@ dashedName: core-learning-algorithms-clustering
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Which of the following steps is **not** part of the K-Means algorithm?
|
Qual das seguintes etapas **não** faz parte do algoritmo de médias-K?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Randomly pick K points to place K centeroids.
|
Escolher aleatoriamente K pontos para colocar centroides K.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Assign each K point to the closest K centeroid.
|
Atribuir cada ponto K para o centroide K mais próximo.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Move each K centeroid into the middle of all of their data points.
|
Mover cada centroide K para o meio de todos os seus pontos de dados.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Shuffle the K points so they're redistributed randomly.
|
Embaralhe os pontos K para que sejam redistribuídos aleatoriamente.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Reassign each K point to the closest K centeroid.
|
Reatribua cada ponto K para o centeroide K mais próximo.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d90
|
id: 5e8f2f13c4cdbe86b5c72d90
|
||||||
title: 'Core Learning Algorithms: Hidden Markov Models'
|
title: 'Algoritmos de aprendizagem principais: modelos de Markov ocultos'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: IZg24y4wEPY
|
videoId: IZg24y4wEPY
|
||||||
dashedName: core-learning-algorithms-hidden-markov-models
|
dashedName: core-learning-algorithms-hidden-markov-models
|
||||||
@ -10,19 +10,19 @@ dashedName: core-learning-algorithms-hidden-markov-models
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What makes a Hidden Markov model different than linear regression or classification?
|
O que torna um modelo de Markov oculto diferente da regressão linear ou da classificação?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
It uses probability distributions to predict future events or states.
|
Ele usa distribuições de probabilidade para prever eventos ou estados futuros.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
It analyzes the relationship between independent and dependent variables to make predictions.
|
Ele analisa a relação entre variáveis dependentes e independentes para fazer previsões.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
It separates data points into separate categories.
|
Ele separa pontos de dados em categorias separadas.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d8c
|
id: 5e8f2f13c4cdbe86b5c72d8c
|
||||||
title: 'Core Learning Algorithms: The Training Process'
|
title: 'Algoritmos de aprendizagem principais: o processo de treinamento'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: _cEwvqVoBhI
|
videoId: _cEwvqVoBhI
|
||||||
dashedName: core-learning-algorithms-the-training-process
|
dashedName: core-learning-algorithms-the-training-process
|
||||||
@ -10,19 +10,19 @@ dashedName: core-learning-algorithms-the-training-process
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What are epochs?
|
O que são epochs?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
The number of times the model will see the same data.
|
O número de vezes que o modelo verá os mesmos dados.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
A type of graph.
|
Um tipo de gráfico.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
The number of elements you feed to the model at once.
|
O número de elementos que você alimenta no modelo de uma só vez.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d8b
|
id: 5e8f2f13c4cdbe86b5c72d8b
|
||||||
title: 'Core Learning Algorithms: Training and Testing Data'
|
title: 'Algoritmos de aprendizagem principais: dados de treinamento e de teste'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: wz9J1slsi7I
|
videoId: wz9J1slsi7I
|
||||||
dashedName: core-learning-algorithms-training-and-testing-data
|
dashedName: core-learning-algorithms-training-and-testing-data
|
||||||
@ -10,19 +10,19 @@ dashedName: core-learning-algorithms-training-and-testing-data
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What is categorical data?
|
O que são dados categóricos?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Another term for one-hot encoding.
|
Outro termo para codificação one-hot.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Any data that is not numeric.
|
Qualquer dado não numérico.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Any data that is represented numerically.
|
Qualquer dado representado numericamente.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d91
|
id: 5e8f2f13c4cdbe86b5c72d91
|
||||||
title: 'Core Learning Algorithms: Using Probabilities to make Predictions'
|
title: 'Algoritmos de aprendizagem principais: usando Probabilidades para fazer previsões'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: fYAYvLUawnc
|
videoId: fYAYvLUawnc
|
||||||
dashedName: core-learning-algorithms-using-probabilities-to-make-predictions
|
dashedName: core-learning-algorithms-using-probabilities-to-make-predictions
|
||||||
@ -10,7 +10,7 @@ dashedName: core-learning-algorithms-using-probabilities-to-make-predictions
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What TensorFlow module should you import to implement `.HiddenMarkovModel()`?
|
Qual módulo do TensorFlow você deve importar para implementar o `.HiddenMarkovModel()`?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d8a
|
id: 5e8f2f13c4cdbe86b5c72d8a
|
||||||
title: 'Core Learning Algorithms: Working with Data'
|
title: 'Algoritmos de aprendizagem principais: trabalhando com dados'
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: u85IOSsJsPI
|
videoId: u85IOSsJsPI
|
||||||
dashedName: core-learning-algorithms-working-with-data
|
dashedName: core-learning-algorithms-working-with-data
|
||||||
@ -10,19 +10,19 @@ dashedName: core-learning-algorithms-working-with-data
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
What does the pandas `.head()` function do?
|
O que faz a função `.head()` do pandas?
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Returns the number of entries in a data frame.
|
Retorna o número de entradas em um quadro de dados.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Returns the number of columns in a data frame.
|
Retorna o número de colunas em um quadro de dados.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
By default, shows the first five rows or entries in a data frame.
|
Por padrão, mostra as primeiras cinco linhas ou entradas em um quadro de dados.
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d89
|
id: 5e8f2f13c4cdbe86b5c72d89
|
||||||
title: Core Learning Algorithms
|
title: Algoritmos de aprendizagem principais
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: u5lZURgcWnU
|
videoId: u5lZURgcWnU
|
||||||
dashedName: core-learning-algorithms
|
dashedName: core-learning-algorithms
|
||||||
@ -10,25 +10,25 @@ dashedName: core-learning-algorithms
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Which type of analysis would be best suited for the following problem?:
|
Qual o tipo de análise mais adequado para o seguinte problema?
|
||||||
|
|
||||||
You have the average temperature in the month of March for the last 100 years. Using this data, you want to predict the average temperature in the month of March 5 years from now.
|
Você tem a temperatura média no mês de março dos últimos 100 anos. Usando estes dados, você quer prever a temperatura média no mês de março daqui a 5 anos.
|
||||||
|
|
||||||
## --answers--
|
## --answers--
|
||||||
|
|
||||||
Multiple regression
|
Regressão múltipla
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Correlation
|
Correlação
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Decision tree
|
Árvore de decisão
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Linear regression
|
Regressão linear
|
||||||
|
|
||||||
## --video-solution--
|
## --video-solution--
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
id: 5e8f2f13c4cdbe86b5c72d98
|
id: 5e8f2f13c4cdbe86b5c72d98
|
||||||
title: Creating a Convolutional Neural Network
|
title: Criando uma rede neural convolucional
|
||||||
challengeType: 11
|
challengeType: 11
|
||||||
videoId: kfv0K8MtkIc
|
videoId: kfv0K8MtkIc
|
||||||
dashedName: creating-a-convolutional-neural-network
|
dashedName: creating-a-convolutional-neural-network
|
||||||
@ -10,7 +10,7 @@ dashedName: creating-a-convolutional-neural-network
|
|||||||
|
|
||||||
## --text--
|
## --text--
|
||||||
|
|
||||||
Fill in the blanks below to complete the architecture for a convolutional neural network:
|
Preencha as lacunas abaixo para completar a arquitetura para uma rede neural convolucional:
|
||||||
|
|
||||||
```py
|
```py
|
||||||
model = models.__A__()
|
model = models.__A__()
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user