Division
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Oppgave
Swipe to start coding
- Set condition if the
yequals the0. - Set the
middlevariable. Themiddleequals theleft + (right - left) // 2. - Return the product of the
middleand thesign. - Update the
left. Theleftequals themiddle. - Update the
right. Therightequals themiddle. - Test the function with the
x = 9andy = 3.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 5
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Suggested prompts:
Oppsummer dette kapittelet
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 14.29
Division
Sveip for å vise menyen
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Oppgave
Swipe to start coding
- Set condition if the
yequals the0. - Set the
middlevariable. Themiddleequals theleft + (right - left) // 2. - Return the product of the
middleand thesign. - Update the
left. Theleftequals themiddle. - Update the
right. Therightequals themiddle. - Test the function with the
x = 9andy = 3.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 5
single