|
43 | 43 | "passed":false, |
44 | 44 | "result": [ |
45 | 45 | { |
46 | | -"text":" 3 x 4\n ^\nSyntaxError: invalid syntax\nat line 1\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nCurrently, I cannot guess the likely cause of this error.\nTry to examine closely the line indicated as well as the line\nimmediately above to see if you can identify some misspelled\nword, or missing symbols, like (, ), [, ], :, etc.\n\nUnless your code uses type annotations, which are beyond our scope,\nif you think that this is something which should be handled\nby friendly, please report this case to\nhttps://github.com/aroberge/friendly/issues\n\n\n\n", |
| 46 | +"text":" 3 x 4\n ^\nSyntaxError: invalid syntax\nen la l\u00ednea 1\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nCurrently, I cannot guess the likely cause of this error.\nTry to examine closely the line indicated as well as the line\nimmediately above to see if you can identify some misspelled\nword, or missing symbols, like (, ), [, ], :, etc.\n\nUnless your code uses type annotations, which are beyond our scope,\nif you think that this is something which should be handled\nby friendly, please report this case to\nhttps://github.com/aroberge/friendly/issues\n\n\n\n", |
47 | 47 | "type":"syntax_error" |
48 | 48 | } |
49 | 49 | ] |
|
563 | 563 | "passed":true, |
564 | 564 | "result": [ |
565 | 565 | { |
566 | | -"text":" print(caracter)\n ^\nIndentationError: expected an indented block\nat line 2\n\nAn `IndentationError` occurs when a given line of code is\nnot indented (aligned vertically with other lines) as expected.\n\nLine `2` identified above was expected to begin a new indented block.\n\n\n", |
| 566 | +"text":" print(caracter)\n ^\nIndentationError: expected an indented block\nen la l\u00ednea 2\n\nAn `IndentationError` occurs when a given line of code is\nnot indented (aligned vertically with other lines) as expected.\n\nLine `2` identified above was expected to begin a new indented block.\n\n\n", |
567 | 567 | "type":"syntax_error" |
568 | 568 | } |
569 | 569 | ] |
|
624 | 624 | "passed":true, |
625 | 625 | "result": [ |
626 | 626 | { |
627 | | -"text":" print('---')\n ^\nIndentationError: unindent does not match any outer indentation level\nat line 3\n\nAn `IndentationError` occurs when a given line of code is\nnot indented (aligned vertically with other lines) as expected.\n\nLine `3` identified above is less indented than expected.\n\n\n", |
| 627 | +"text":" print('---')\n ^\nIndentationError: unindent does not match any outer indentation level\nen la l\u00ednea 3\n\nAn `IndentationError` occurs when a given line of code is\nnot indented (aligned vertically with other lines) as expected.\n\nLine `3` identified above is less indented than expected.\n\n\n", |
628 | 628 | "type":"syntax_error" |
629 | 629 | } |
630 | 630 | ] |
|
1783 | 1783 | "passed":true, |
1784 | 1784 | "result": [ |
1785 | 1785 | { |
1786 | | -"text":" print(1 + 2 = 3)\n ^\nSyntaxError: expression cannot contain assignment, perhaps you meant\"==\"?\nat line 1\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nYou likely called a function with a named argument:\n\n a_function(invalid=something)\n\nwhere `invalid` is not a valid variable name in Python\neither because it starts with a number, or is a string,\nor contains a period, etc.\n\n\n", |
| 1786 | +"text":" print(1 + 2 = 3)\n ^\nSyntaxError: expression cannot contain assignment, perhaps you meant\"==\"?\nen la l\u00ednea 1\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nYou likely called a function with a named argument:\n\n a_function(invalid=something)\n\nwhere `invalid` is not a valid variable name in Python\neither because it starts with a number, or is a string,\nor contains a period, etc.\n\n\n", |
1787 | 1787 | "type":"syntax_error" |
1788 | 1788 | } |
1789 | 1789 | ] |
|
1794 | 1794 | "page":"El operador de igualdad", |
1795 | 1795 | "program": [ |
1796 | 1796 | "nombre = 'kesha'", |
1797 | | -"juevo_nuevo = ''", |
| 1797 | +"juego_nuevo = ''", |
1798 | 1798 | "for c in nombre:", |
1799 | 1799 | " if c == 's':", |
1800 | 1800 | " c = '$'", |
1801 | | -"juevo_nuevo += c", |
| 1801 | +"juego_nuevo += c", |
1802 | 1802 | "", |
1803 | | -"print(juevo_nuevo)" |
| 1803 | +"print(juego_nuevo)" |
1804 | 1804 | ], |
1805 | 1805 | "response": { |
1806 | 1806 | "message":"", |
|
1816 | 1816 | }, |
1817 | 1817 | { |
1818 | 1818 | "get_solution": [ |
1819 | | -"juevo_nuevo = ''", |
| 1819 | +"juego_nuevo = ''", |
1820 | 1820 | "for c in nombre:", |
1821 | 1821 | " if c == 'e':", |
1822 | 1822 | " c = '3'", |
1823 | 1823 | " if c == 's':", |
1824 | 1824 | " c = '$'", |
1825 | 1825 | " if c == 'a':", |
1826 | 1826 | " c = '@'", |
1827 | | -"juevo_nuevo += c", |
| 1827 | +"juego_nuevo += c", |
1828 | 1828 | "", |
1829 | | -"print(juevo_nuevo)" |
| 1829 | +"print(juego_nuevo)" |
1830 | 1830 | ], |
1831 | 1831 | "page":"El operador de igualdad", |
1832 | 1832 | "program": [ |
1833 | 1833 | "nombre = 'kesha'", |
1834 | | -"juevo_nuevo = ''", |
| 1834 | +"juego_nuevo = ''", |
1835 | 1835 | "for c in nombre:", |
1836 | 1836 | " if c == 'e':", |
1837 | 1837 | " c = '3'", |
1838 | 1838 | " if c == 's':", |
1839 | 1839 | " c = '$'", |
1840 | 1840 | " if c == 'a':", |
1841 | 1841 | " c = '@'", |
1842 | | -"juevo_nuevo += c", |
| 1842 | +"juego_nuevo += c", |
1843 | 1843 | "", |
1844 | | -"print(juevo_nuevo)" |
| 1844 | +"print(juego_nuevo)" |
1845 | 1845 | ], |
1846 | 1846 | "response": { |
1847 | 1847 | "message":"", |
|
3777 | 3777 | "passed":true, |
3778 | 3778 | "result": [ |
3779 | 3779 | { |
3780 | | -"text":" print('Alice's Diner')\n ^\nSyntaxError: invalid syntax\nat line 1\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nThere appears to be a Python identifier (variable name)\nimmediately following a string.\nI suspect that you were trying to use a quote inside a string\nthat was enclosed in quotes of the same kind.\n\n\n", |
| 3780 | +"text":" print('Alice's Diner')\n ^\nSyntaxError: invalid syntax\nen la l\u00ednea 1\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nThere appears to be a Python identifier (variable name)\nimmediately following a string.\nI suspect that you were trying to use a quote inside a string\nthat was enclosed in quotes of the same kind.\n\n\n", |
3781 | 3781 | "type":"syntax_error" |
3782 | 3782 | } |
3783 | 3783 | ] |
|
4227 | 4227 | "passed":false, |
4228 | 4228 | "result": [ |
4229 | 4229 | { |
4230 | | -"text":" 3 x 4\n ^\nSyntaxError: invalid syntax\nat line 2\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nCurrently, I cannot guess the likely cause of this error.\nTry to examine closely the line indicated as well as the line\nimmediately above to see if you can identify some misspelled\nword, or missing symbols, like (, ), [, ], :, etc.\n\nUnless your code uses type annotations, which are beyond our scope,\nif you think that this is something which should be handled\nby friendly, please report this case to\nhttps://github.com/aroberge/friendly/issues\n\n\n\n", |
| 4230 | +"text":" 3 x 4\n ^\nSyntaxError: invalid syntax\nen la l\u00ednea 2\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nCurrently, I cannot guess the likely cause of this error.\nTry to examine closely the line indicated as well as the line\nimmediately above to see if you can identify some misspelled\nword, or missing symbols, like (, ), [, ], :, etc.\n\nUnless your code uses type annotations, which are beyond our scope,\nif you think that this is something which should be handled\nby friendly, please report this case to\nhttps://github.com/aroberge/friendly/issues\n\n\n\n", |
4231 | 4231 | "type":"syntax_error" |
4232 | 4232 | } |
4233 | 4233 | ] |
|
4383 | 4383 | "step":"player_vs_player_bonus" |
4384 | 4384 | }, |
4385 | 4385 | { |
4386 | | -"page":"Comprensi\u00f3n de programas conBird's Eye", |
| 4386 | +"page":"Comprensi\u00f3n de programas con<code>birdseye</code>", |
4387 | 4387 | "program": [ |
4388 | 4388 | "a = 2", |
4389 | 4389 | "b = 3", |
|
4404 | 4404 | "step":"first_birdseye_example" |
4405 | 4405 | }, |
4406 | 4406 | { |
4407 | | -"page":"Comprensi\u00f3n de programas conBird's Eye", |
| 4407 | +"page":"Comprensi\u00f3n de programas con<code>birdseye</code>", |
4408 | 4408 | "program": [ |
4409 | 4409 | "palabra = 'Sorprendente'", |
4410 | 4410 | "vocales = []", |
|
5840 | 5840 | "passed":true, |
5841 | 5841 | "result": [ |
5842 | 5842 | { |
5843 | | -"text":" es_amigo = nombre ==\"Alicia\" or\n ^\nSyntaxError: invalid syntax\nat line 1\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nThe Python keyword `or` can only be used for boolean expressions.\nPerhaps you meant to write\n\n`es_amigo = nombre ==\"Alicia\" ,`\n\n\n", |
| 5843 | +"text":" es_amigo = nombre ==\"Alicia\" or\n ^\nSyntaxError: invalid syntax\nen la l\u00ednea 1\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nThe Python keyword `or` can only be used for boolean expressions.\nPerhaps you meant to write\n\n`es_amigo = nombre ==\"Alicia\" ,`\n\n\n", |
5844 | 5844 | "type":"syntax_error" |
5845 | 5845 | } |
5846 | 5846 | ] |
|
6226 | 6226 | "passed":true, |
6227 | 6227 | "result": [ |
6228 | 6228 | { |
6229 | | -"text":"\"XOX\n ^\nSyntaxError: EOL while scanning string literal\nat line 7\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nYou started writing a string with a single or double quote\nbut never ended the string with another quote on that line.\n\n\n", |
| 6229 | +"text":"\"XOX\n ^\nSyntaxError: EOL while scanning string literal\nen la l\u00ednea 7\n\nA `SyntaxError` occurs when Python cannot understand your code.\n\nYou started writing a string with a single or double quote\nbut never ended the string with another quote on that line.\n\n\n", |
6230 | 6230 | "type":"syntax_error" |
6231 | 6231 | } |
6232 | 6232 | ] |
|
6833 | 6833 | }, |
6834 | 6834 | "step":"naive_make_board" |
6835 | 6835 | }, |
| 6836 | + { |
| 6837 | +"page":"Construyendo el Tablero", |
| 6838 | +"program": [ |
| 6839 | +"pass", |
| 6840 | +"def crear_tablero(tamano): return [[' '] * tamano] * tamano" |
| 6841 | + ], |
| 6842 | +"response": { |
| 6843 | +"message":"<p>Las sublistas en el resultado no son objetos separados.</p>", |
| 6844 | +"passed":false, |
| 6845 | +"result": [] |
| 6846 | + }, |
| 6847 | +"step":"fix_make_board" |
| 6848 | + }, |
6836 | 6849 | { |
6837 | 6850 | "get_solution": [ |
6838 | 6851 | "def crear_tablero(tamano):", |
|