Division
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Tarea
Swipe to start coding
- Set condition if the
y
equals the0
. - Set the
middle
variable. Themiddle
equals theleft + (right - left) // 2
. - Return the product of the
middle
and thesign
. - Update the
left
. Theleft
equals themiddle
. - Update the
right
. Theright
equals themiddle
. - Test the function with the
x = 9
andy = 3
.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 5
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Suggested prompts:
Resumir este capítulo
Explicar el código en file
Explicar por qué file no resuelve la tarea
Awesome!
Completion rate improved to 14.29
Division
Desliza para mostrar el menú
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Tarea
Swipe to start coding
- Set condition if the
y
equals the0
. - Set the
middle
variable. Themiddle
equals theleft + (right - left) // 2
. - Return the product of the
middle
and thesign
. - Update the
left
. Theleft
equals themiddle
. - Update the
right
. Theright
equals themiddle
. - Test the function with the
x = 9
andy = 3
.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Awesome!
Completion rate improved to 14.29Sección 2. Capítulo 5
single