Page 74 - PYTHON-12
P. 74

print('4 Linear Search\n')


                       print('5 Binary Search\n')

                       print('6 Lowest Number \n')

                       print('7 Selection Sort\n')


                       print('10 Exit\n')

                       ch=int(input('Enter Choice '))

                       if ch==1 :


                           appendarray()

                       elif ch==2 :


                           print_array()

                       elif ch==3 :

                           reverse_array()


                       elif ch==4 :

                           linear_search()

                       elif ch==5 :


                           binary_search()

                       elif ch==6 :

                           min_number()


                       elif ch==7 :

                           selection_sort()




               def appendarray():

                   for i in range(0,10):

                       x=int(input('Enter Number : '))


                       arr.insert(i,x)
   69   70   71   72   73   74   75   76   77   78   79