Maximum number of comparisons required for searching an item using Binary search is 9. What can be the maximum size of array code example
Example 1: Create a program that finds the minimum value in these numbers
Create a program that finds the minimum value in these numbers:
Example 2: # get the largest number in a list and print its indexes
numbers = 1,3,11,42,12,4001
highestnumber = -999
for i in numbers:
if i > highestnumber:
highestnumber = i
print(numbers.index(highestnumber))