Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Binary Search 2/2 | Binary Search
Binary Search in Python
course content

Course Content

Binary Search in Python

Binary Search in Python

1. Binary Search
2. Problems

bookBinary Search 2/2

It is time to test your first Binary search algorithm!

Use hints if needed! Scroll down to see the full code! Be careful with the tabulation!

Task

  1. Test the function with the x variable.
  2. Print the result for the 1st test.
  3. Test the function with the x_2 variable.
  4. Print the result for the 2nd test.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 2
toggle bottom row

bookBinary Search 2/2

It is time to test your first Binary search algorithm!

Use hints if needed! Scroll down to see the full code! Be careful with the tabulation!

Task

  1. Test the function with the x variable.
  2. Print the result for the 1st test.
  3. Test the function with the x_2 variable.
  4. Print the result for the 2nd test.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 2
toggle bottom row

bookBinary Search 2/2

It is time to test your first Binary search algorithm!

Use hints if needed! Scroll down to see the full code! Be careful with the tabulation!

Task

  1. Test the function with the x variable.
  2. Print the result for the 1st test.
  3. Test the function with the x_2 variable.
  4. Print the result for the 2nd test.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

It is time to test your first Binary search algorithm!

Use hints if needed! Scroll down to see the full code! Be careful with the tabulation!

Task

  1. Test the function with the x variable.
  2. Print the result for the 1st test.
  3. Test the function with the x_2 variable.
  4. Print the result for the 2nd test.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 2
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt