Skip to content

Commit 7b22a0e

Browse files
committed
Duplicate ID fixes
1 parent 765ab40 commit 7b22a0e

26 files changed

+148
-150
lines changed

_sources/challenges/Reto01_en.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
=============
1+
=================
22
Hangman Challenge
3-
=============
3+
=================
44

55
This challenge consists in creating the **hangman** game from Python code.
66

@@ -10,7 +10,7 @@ This challenge consists in creating the **hangman** game from Python code.
1010

1111
First, we'll make the different hangman drawings with text strings.
1212

13-
.. activecode:: ac_r01_1
13+
.. activecode:: ac_r01_1_en
1414
:nocodelens:
1515

1616
In the ``drawings`` list we will place the text strings that represent
@@ -89,7 +89,7 @@ This challenge consists in creating the **hangman** game from Python code.
8989

9090
We will solve the challenge progressively.
9191

92-
.. activecode:: ac_r01_2
92+
.. activecode:: ac_r01_2_en
9393
:nocodelens:
9494

9595
Create two variables, one called "correct" and the other "incorrect". Both should be assigned to
@@ -115,7 +115,7 @@ This challenge consists in creating the **hangman** game from Python code.
115115

116116
Do you remember the lesson on APIs? Let's apply what we learned from that lesson.
117117

118-
.. activecode:: ac_r01_3
118+
.. activecode:: ac_r01_3_en
119119
:nocodelens:
120120

121121
To play hangman we need words to guess. In this case we will retrieve those words from the University Domains API.
@@ -165,7 +165,7 @@ This challenge consists in creating the **hangman** game from Python code.
165165

166166
Let's define another function to print the hangman.
167167

168-
.. activecode:: ac_r01_4
168+
.. activecode:: ac_r01_4_en
169169
:nocodelens:
170170
:include: ac_r01_1, ac_r01_2, ac_r01_3
171171

@@ -187,7 +187,7 @@ This challenge consists in creating the **hangman** game from Python code.
187187
It's time to create the main function of our program, which asks the user for a
188188
letter to guess.
189189

190-
.. activecode:: ac_r01_5
190+
.. activecode:: ac_r01_5_en
191191
:nocodelens:
192192

193193
Develop the ``guess`` function. It receives a string as a parameter (``letters``) with all the letters already
@@ -231,7 +231,7 @@ This challenge consists in creating the **hangman** game from Python code.
231231

232232
Let's make it possible for the user to decide whether or not they want to play again.
233233

234-
.. activecode:: ac_r01_6
234+
.. activecode:: ac_r01_6_en
235235
:nocodelens:
236236

237237
Develop the ``play_again`` function that asks the user if they want to play again. The answer should be *s* or *n* (S/N).
@@ -270,7 +270,7 @@ This challenge consists in creating the **hangman** game from Python code.
270270

271271
.. tab:: Exercise 7
272272

273-
.. activecode:: ac_r01_7
273+
.. activecode:: ac_r01_7_en
274274
:nocodelens:
275275

276276
Now develop the ``win`` function. It takes two parameters: ``p_aleatoria``, which represents the word to be guessed, and ``letras_adivinadas``. It should return ``True`` if all the letters of ``p_aleatoria`` are in the ``letras_adivinadas`` string. Otherwise, it returns False.
@@ -295,7 +295,7 @@ This challenge consists in creating the **hangman** game from Python code.
295295

296296
You have already defined all the necessary functions and variables for the program. If you have made it this far, you should have completed everything and passed all the unit tests. If so, you can run the following program to test your game. You have 5 minutes to play.
297297

298-
.. activecode:: ac_r01_8
298+
.. activecode:: ac_r01_8_en
299299
:nocodelens:
300300
:include: ac_r01_1, ac_r01_2, ac_r01_3, ac_r01_4, ac_r01_5, ac_r01_6, ac_r01_7
301301

_sources/challenges/Reto03_en.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
================================
1+
=================================
22
Pygame Challenge - Zombie Shooter
3-
================================
3+
=================================
44

55
.. raw:: html
66

@@ -13,7 +13,7 @@ Pygame Challenge - Zombie Shooter
1313
</script>
1414

1515

16-
.. activecode:: ac_r03_1
16+
.. activecode:: ac_r03_1_en
1717
:language: python3
1818
:python3_interpreter: brython
1919

_sources/index_en.rst

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@ Contenidos:
3434
lectures/TWP58/toctree_en
3535
lectures/TWP60/toctree_en
3636
lectures/TWP65/toctree_en
37-
quiz/Quiz1.rst
38-
quiz/Quiz2.rst
39-
quiz/Quiz3.rst
40-
quiz/Quiz4.rst
41-
quiz/Quiz5.rst
42-
quiz/Quiz6.rst
43-
quiz/Quiz7.rst
44-
quiz/Quiz8.rst
45-
quiz/Quiz9.rst
46-
quiz/Quiz10.rst
47-
quiz/Quiz11.rst
48-
quiz/Quiz12.rst
49-
quiz/Quiz13.rst
50-
quiz/QuizExtras.rst
51-
quiz/QuizExtras2.rst
52-
challenges/Reto01.rst
37+
quiz/Quiz1_en.rst
38+
quiz/Quiz2_en.rst
39+
quiz/Quiz3_en.rst
40+
quiz/Quiz4_en.rst
41+
quiz/Quiz5_en.rst
42+
quiz/Quiz6_en.rst
43+
quiz/Quiz7_en.rst
44+
quiz/Quiz8_en.rst
45+
quiz/Quiz9_en.rst
46+
quiz/Quiz10_en.rst
47+
quiz/Quiz11_en.rst
48+
quiz/Quiz12_en.rst
49+
quiz/Quiz13_en.rst
50+
quiz/QuizExtras_en.rst
51+
quiz/QuizExtras2_en.rst
52+
challenges/Reto01_en.rst
5353
challenges/Reto02.rst
54-
challenges/Reto03.rst
54+
challenges/Reto03_en.rst

_sources/lectures/TWP05/TWP05_14_en.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ Desktop testing or simulation
1010
:widths: auto
1111
:align: left
1212

13-
====== ====== ========
13+
===== ======== ======
1414
debt purchase Screen
15-
====== ====== ========
15+
===== ======== ======
1616
-0- -100- 600
1717
-100- -200-
18-
-300- 300
19-
600
20-
====== ====== ========
18+
-300- 300
19+
600
20+
===== ======== ======
2121

2222

2323
Don't rush desktop testing

_sources/lectures/TWP05/TWP05_5_en.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Variable names
44
+ In Python, variable names must start with a letter or underscore ``_``
55
+ Accents are allowed!
66
+ Examples of valid names: ``price``, ``action``, ``salary``, ``_x``,
7-
  ``year_2011``, ``average_salary``
7+
``year_2011``, ``average_salary``
88

99
.. code-block:: python
1010

_sources/lectures/TWP05/TWP05_7_en.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Numeric variables
44
+ Integers do not have decimal places: ``42``, ``-7``
55
+ Values of type integer in Python are called ``int``
66
+ Floating point numbers have decimal places: ``1.0``, ``3.1415``,
7-
  ``1234.56``
7+
``1234.56``
88
+ Note that ``1.0``, even though it has a zero in the decimal part, is a floating point number
99
+ Values of type floating point in Python are called ``float``.
1010

@@ -15,7 +15,7 @@ Representation of numeric values
1515
+ Internally, all numbers are represented with the binary system
1616
+ This system only allows the digits ``0`` or ``1``
1717
+ Floating point numbers may not have a proper representation
18-
  in the binary system
18+
in the binary system
1919
+ Typing in the interpreter ``3 * 0.1`` will give us a response of: ``0.30000000000000004``
2020

2121
**Try it here!**

_sources/lectures/TWP05/TWP05_8_en.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ Relational Operators
1212
.. table:: **Relational Operators**
1313
:widths: auto
1414

15-
======== ============== ==============================
16-
Operator Operation Mathematical equivalent symbol
17-
======== ============== ==============================
18-
== equal =
19-
> greater than >
20-
< less than <
21-
!= not equal <>
22-
>= greater or equal >=
23-
<= less or equal <=
24-
======== ============== ==============================
15+
======== ================ ==============================
16+
Operator Operation Mathematical equivalent symbol
17+
======== ================ ==============================
18+
== equal =
19+
> greater than >
20+
< less than <
21+
!= not equal <>
22+
>= greater or equal >=
23+
<= less or equal <=
24+
======== ================ ==============================
2525

2626
+ Note that the equality operator is two equals (``==``)
2727

_sources/lectures/TWP10/TWP10_2_en.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
+ There are points where we decide which path to choose.
77

88
.. image:: ../img/TWP10_004.png
9-
:height: 5.28 inches
10-
:width: 7.87 inches
9+
:height: 13.389cm
10+
:width: 20.001cm
1111
:align: center
1212
:alt: Python code snippet.

_sources/lectures/TWP15/TWP15_5_en.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ Interrupting the repetition
55
+ Calculate the sum of integers until zero is entered
66

77

8-
.. activecode:: python
9-
:class: python
8+
.. activecode:: ac_l15_5a_en
109
:nocodelens:
1110
:stdin:
1211

@@ -23,8 +22,7 @@ Interrupting the repetition
2322
+ Calculate the average of entered numbers until zero is entered
2423

2524

26-
.. activecode:: python
27-
:class: python
25+
.. activecode:: ac_l15_5b_en
2826
:nocodelens:
2927
:stdin:
3028

_sources/lectures/TWP18/TWP18_3_en.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Concatenation
44
A string cannot be modified
55
--------------------------------
66

7-
.. activecode:: python
7+
.. activecode:: ac_l18_3a_en
88
:nocodelens:
99
:stdin:
1010

@@ -17,7 +17,7 @@ I can create new strings
1717
+ Using concatenation solves this problem
1818

1919

20-
.. activecode:: python
20+
.. activecode:: ac_l18_3b_en
2121
:nocodelens:
2222
:stdin:
2323

@@ -30,7 +30,7 @@ I can create new strings
3030
The ``lower`` function transforms the letters to lowercase.
3131

3232

33-
.. activecode:: python
33+
.. activecode:: ac_l18_3a_en
3434
:nocodelens:
3535
:stdin:
3636

@@ -49,7 +49,7 @@ I can create new strings
4949
Exercise
5050
---------
5151

52-
.. activecode:: python
52+
.. activecode:: ac_l18_3d_en
5353
:nocodelens:
5454
:stdin:
5555

_sources/lectures/TWP25/TWP25_2_en.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Class Client and Class Account
2-
=============================
2+
==============================
33

44
+ You will automate the TATU bank, controlling the balance of checking accounts.
55
+ Each checking account can have one or more clients as holders.

_sources/lectures/TWP25/TWP25_3_en.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Operations declaration and inheritance
2-
=====================================
2+
======================================
33

44
+ Add the method ``statement`` to the ``Account`` class that prints a list of deposit and withdrawal operations.
55
+ Change the ``__init__`` method to use the ``deposit`` method to initialize the balance.
@@ -70,7 +70,7 @@ Using the Client and Improved Account Classes
7070
account_2.statement()
7171

7272
Inheritance
73-
--------
73+
-----------
7474

7575
+ Object inheritance allows us to modify our classes by adding or modifying attributes and methods based on the previous class.
7676
+ We will create special accounts where we can withdraw more money than the balance, up to a certain limit.
@@ -104,14 +104,14 @@ Special Account Class
104104
+ Note that we are completely overriding the ``withdraw`` method in ``SpecialAccount``.
105105

106106
Advantages of Inheritance
107-
-----------------------
107+
-------------------------
108108

109109
+ We have made minimal changes to our program, maintaining previous functionality and adding new features.
110110
+ It was possible to reuse account methods.
111111
+ Therefore, the definition of the ``SpecialAccount`` class was much simpler, including only the different behavior.
112112

113113
Using all classes
114-
---------------------------
114+
-----------------
115115

116116
.. activecode:: ac_l25_3d_en
117117
:nocodelens:

_sources/lectures/TWP30/TWP30_2_en.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The parts of your program
99
=========================
1010

1111
Guessing numbers
12-
------------------
12+
----------------
1313

1414
.. activecode:: ac_l30_2_en
1515
:nocodelens:
@@ -26,7 +26,7 @@ Guessing numbers
2626

2727

2828
The parts of the program
29-
-----------------------
29+
------------------------
3030

3131
Now let's analyze the parts of the previous code
3232

_sources/lectures/TWP37/TWP37_5_en.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Sorting in decreasing order
4848

4949

5050
``sort`` and ``reverse`` methods
51-
------------------------------
51+
--------------------------------
5252

5353
+ The ``sort`` method sorts the data.
5454
+ The use of ``reverse`` keeps them in descending order.

_sources/lectures/TWP40/TWP40_10_en.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Exercise
4141

4242
FAQs
4343
--------------------
44-
.. mchoice:: feedback_l40_10_1
44+
.. mchoice:: feedback_l40_10_1_en
4545
:random:
4646
:answer_a: Helps us build the correct product without waste or redundancy
4747
:feedback_a: It often makes sense to write the test first and then write as much code as necessary to allow the test to pass.
@@ -55,7 +55,7 @@ FAQs
5555

5656
Why is defining some tests before implementation a good programming practice?
5757

58-
.. mchoice:: feedback_l40_10_2
58+
.. mchoice:: feedback_l40_10_2_en
5959
:random:
6060
:answer_a: Allows testing of the program's logical flow before coding it.
6161
:feedback_a: Writing pseudocode in the design stage provides several benefits, including the ability to test the logic and structure of the program before writing any actual code.

_sources/lectures/TWP40/TWP40_9_en.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Ways to iterate
55
+ All of them follow the pattern ``for <var> in <sequence>``.
66

77

8-
.. activecode:: python
8+
.. activecode:: ac_l40_9_en
99
:nocodelens:
1010
:stdin:
1111

_sources/lectures/TWP42/TWP42_3_en.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Sorting rows
108108

109109

110110
Data filtering
111-
------------
111+
--------------
112112

113113
+ We have already seen some ways of archiving data, e.g., the `LIMIT` clause.
114114
+ In the following section, we will see some more ways to filter data, specifically the `WHERE`, `IN`, `BETWEEN`, and `LIKE` clauses.
@@ -257,7 +257,7 @@ Data filtering
257257
# Close the cursor
258258
cursor.close()
259259

260-
Grouping of data
260+
Grouping of data
261261
----------------
262262

263263
.. activecode:: ac_42_4a_en

0 commit comments

Comments
 (0)