Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2359440

Browse files
make ErfanThinker's change in the Spanish version
1 parent e11e40c commit 2359440

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎es/ch16/pruebas.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ def crear_gen(índice, puertas, fuentes):
5353
if tipoDePuerta[1].recuento_de_entradas() > 0:
5454
índiceA = random.randint(0, índice)
5555
if tipoDePuerta[1].recuento_de_entradas() > 1:
56-
índiceB = random.randint(0, índice) \
57-
if índice > 1 and índice >= len(fuentes) else 0
56+
índiceB = random.randint(0, índice)
5857
if índiceB == índiceA:
5958
índiceB = random.randint(0, índice)
6059
return Nodo(tipoDePuerta[0], índiceA, índiceB)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /