Division
Look at the explanation of the task! How does it work?
Use hints if needed! Be careful with the tabulation!
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 5
single
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
Sveip for å begynne å kode
- 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