Skip to content

Commit

Permalink
fix indentation of demo code for level 7 (hedyorg#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvberkel authored Dec 17, 2020
1 parent a6a268b commit 6e81583
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions coursedata/level-defaults/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@
name: "if with multiple lines"
explanation: "Ask for the answer to a sum and check if it is correct. We can now print 2 lines."
example: "Example: answer is ask What is 5 plus 5?"
demo_code: "answer is ask What is 5 plus 5?\nif answer is 10\nprint 'Well done!'\nprint 'Indeed, the answer was ' answer\nelse\nprint 'Oops!'\nprint 'The answer is ' answer"
demo_code: "answer is ask What is 5 plus 5?\nif answer is 10\n print 'Well done!'\n print 'Indeed, the answer was ' answer\nelse\n print 'Oops!'\n print 'The answer is ' answer"
-
name: "if and repeat combined"
explanation: "if and repeat combined"
example: "Example: if color is green repeat 3 times print 'pretty!' else repeat 5 times print 'meh'"
demo_code: "color is ask What is your favorite color?\nif color is green\nrepeat 3 times\nprint 'pretty!'\nelse\nrepeat 5 times\nprint 'meh'"
demo_code: "color is ask What is your favorite color?\nif color is green\n repeat 3 times\n print 'pretty!'\nelse\n repeat 5 times\n print 'meh'"

4 changes: 2 additions & 2 deletions coursedata/level-defaults/es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@
name: "if con varias líneas"
explanation: "Pregunta por la respuesta de una operación y comprueba el resultado. Ahora podemos mostrar 2 líneas"
example: "Ejemplo: resultado is ask ¿Cuánto es 5 más 5?"
demo_code: "resultado is ask ¿Cuánto es 5 más 5?\nif resultado is 10\nprint 'Muy bien!'\nprint 'La respuesta claro que es ' resultado\nelse\nprint 'Oops!'\nprint 'La respuesta es ' resultado"
demo_code: "resultado is ask ¿Cuánto es 5 más 5?\nif resultado is 10\n print 'Muy bien!'\n print 'La respuesta claro que es ' resultado\nelse\n print 'Oops!'\n print 'La respuesta es ' resultado"
-
name: "if y repeat combinados"
explanation: "if y repeat combinados"
example: "Ejemplo: if color is verde repeat 3 times print '¡Qué bonito!' else repeat 5 times print 'A mi me gusta otro'"
demo_code: "color is ask ¿Cuá es tu color favorito?\nif color is verde\nrepeat 3 times\nprint '¡Qué bonito!'\nelse\nrepeat 5 times\nprint 'A mi me gusta otro'"
demo_code: "color is ask ¿Cuá es tu color favorito?\nif color is verde\n repeat 3 times\n print '¡Qué bonito!'\nelse\n repeat 5 times\n print 'A mi me gusta otro'"
4 changes: 2 additions & 2 deletions coursedata/level-defaults/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@
Demande la réponse d’une addition et vérifie si elle est correcte.
Tu peux désormais imprimer sur 2 lignes.
example: "Exemple: reponse is ask What is 5 plus 5?"
demo_code: "reponse is ask Combein font 5 plus 5?\nif reponse is 10\nprint 'Bien joué!'\nprint 'En effet, la réponse est ' reponse\nelse\nprint 'Oups!'\nprint 'Ta réponse est ' reponse"
demo_code: "reponse is ask Combein font 5 plus 5?\nif reponse is 10\n print 'Bien joué!'\n print 'En effet, la réponse est ' reponse\nelse\n print 'Oups!'\n print 'Ta réponse est ' reponse"
- name: "if et repeat combinés"
explanation: "if et repeat combinés"
example: "Exemple: if couleur is vert repeat 3 times print 'joli!' else repeat 5 times print 'bof'"
demo_code: "couleur is ask Quelle est ta couleur préférée?\nif couleur is vert\nrepeat 3 times\nprint 'joli!'\nelse\nrepeat 5 times\nprint 'bof'"
demo_code: "couleur is ask Quelle est ta couleur préférée?\nif couleur is vert\n repeat 3 times\n print 'joli!'\nelse\n repeat 5 times\n print 'bof'"
4 changes: 2 additions & 2 deletions coursedata/level-defaults/nl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@
name: "if met meerdere regels"
explanation: "Het antwoord van een som vragen met ask en kijken of het goed is. Nu printen we twee regels uit."
example: "Bijvoorbeeld: antwoord is ask Hoeveel is 10 plus 10?"
demo_code: "antwoord is ask Hoeveel is 10 plus 10?\nif antwoord is 20\nprint 'Goedzo!'\nprint 'Het antwoord was inderdaad ' antwoord\nelse\nprint 'Foutje'\nprint 'Het antwoord moest zijn ' antwoord"
demo_code: "antwoord is ask Hoeveel is 10 plus 10?\nif antwoord is 20\n print 'Goedzo!'\n print 'Het antwoord was inderdaad ' antwoord\nelse\n print 'Foutje'\n print 'Het antwoord moest zijn ' antwoord"
-
name: "if en repeat samen"
explanation: "repeat en if samen"
example: "Bijvoorbeeld: if kleur is groen repeat 3 times print 'mooi!' else repeat 5 times print 'niet zo mooi'"
demo_code: "kleur is ask Wat is je lievelingskleur?\nif kleur is groen\nrepeat 3 times\nprint 'mooi!'\nelse\nrepeat 5 times\nprint 'niet zo mooi'"
demo_code: "kleur is ask Wat is je lievelingskleur?\nif kleur is groen\n repeat 3 times\n print 'mooi!'\nelse\n repeat 5 times\n print 'niet zo mooi'"
8:
start_code: "for i in range 1 to 11\n print i\nprint 'wie niet weg is is gezien'"
intro_text: |
Expand Down
4 changes: 2 additions & 2 deletions coursedata/level-defaults/pt_br.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@
name: "if com múltiplas linhas"
explanation: "Pergunta à resposta de uma soma e verifica se está correta. Agora nós podemos printar 2 linhas."
example: "Exemplo: resposta is ask Quanto é 5 mais 5?"
demo_code: "resposta is ask Quanto é 5 mais 5?\nif resposta is 10\nprint 'Muito bem!'\nprint 'De fato, a resposta foi ' resposta\nelse\nprint 'Opa!'\nprint 'A resposta é ' resposta"
demo_code: "resposta is ask Quanto é 5 mais 5?\nif resposta is 10\n print 'Muito bem!'\n print 'De fato, a resposta foi ' resposta\nelse\n print 'Opa!'\n print 'A resposta é ' resposta"
-
name: "if e repeat juntos"
explanation: "if e repeat juntos"
example: "Exemplo: if cor is verde repeat 3 times print 'bonita!' else repeat 5 times print 'não gostei'"
demo_code: "cor is ask Qual a sua cor favorita?\nif cor is verde\nrepeat 3 times\nprint 'bonita!'\nelse\nrepeat 5 times\nprint 'não gostei'"
demo_code: "cor is ask Qual a sua cor favorita?\nif cor is verde\n repeat 3 times\n print 'bonita!'\nelse\n repeat 5 times\n print 'não gostei'"

0 comments on commit 6e81583

Please sign in to comment.