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

Binary 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.

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.

Everything was clear?

Section 1. Chapter 2
toggle bottom row

Binary 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.

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.

Everything was clear?

Section 1. Chapter 2
toggle bottom row

Binary 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.

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.

Everything was clear?

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.

Section 1. Chapter 2
Switch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt