Python Tutorials - Linear Search | Searching key Element in the List Of Numbers

Поделиться
HTML-код
  • Опубликовано: 15 дек 2024
  • In this Python Pattern programming video tutorial you will learn about linear search in detail.
    Linear search is a very basic and simple search algorithm. In Linear search, we search an element or value in a given array by traversing the array from the starting, till the desired element or value is found.
    #Python #PythonProgramming
    For more free tutorials on computer programming
    / amulsacademy
    / amulsacademy

Комментарии • 89

  • @ramosman0469
    @ramosman0469 5 лет назад +15

    Probably the best python channel on RUclips. Thank you so much, amazing teaching style!!

  • @DilanTech
    @DilanTech 5 лет назад +15

    Wow, your way of explaining is excellent. Really helpfull.

  • @gouravtanwar8631
    @gouravtanwar8631 5 лет назад +7

    Your way of explaining is excellent.You are doing great work 👍🏻

  • @vjjain5828
    @vjjain5828 2 года назад +1

    Only the one who make me understand things. Thank you very much!!!

  • @teqarine5752
    @teqarine5752 5 лет назад +6

    Yes ma'am now I'm able to chuck any element in a list thank you so much ma'am
    I'm having so much fun chucking elements 😊

  • @ahmedsalem3398
    @ahmedsalem3398 5 лет назад +5

    Thanks for your time and your support.
    Regarding flag could we use condition for len of list1 and save some lines
    Regarding duplication we need to put ex for duplication not only test as previous code.

  • @francismannion7075
    @francismannion7075 5 лет назад +3

    Thank you Amul for a very well presented and interesting lesson.

  • @sivasurya4149
    @sivasurya4149 4 года назад +1

    And also u way of explaining is simply and conveniently .....

  • @banhishikhamitra2600
    @banhishikhamitra2600 4 года назад +1

    Duplicate number search implementation is really helpful!

  • @mehathapnabeesha-qe9wu
    @mehathapnabeesha-qe9wu 9 месяцев назад

    Tomorrow I have model practical your video is so helpful to me thank you so much

  • @tr2p233
    @tr2p233 3 года назад +1

    if an elements are presented more than one times in the list and we have search that elements. and we want to find both the indexs(positions) then what are the syntax should i use ?

  • @sowbaranikag6514
    @sowbaranikag6514 3 года назад +1

    Wow...... And that's amazing😍🤩🤩😍ur language is so so so clear and goooooooodddd.....ur way of explanation is excellent👌👌👌👌👌👌..... Thank you so much...
    Keep on doing 👍👍👍👍👍 Subscribed 😜😜

  • @alexanderjwilson7420
    @alexanderjwilson7420 3 года назад

    what are you using to draw the first diagram?

  • @Naveen4skr
    @Naveen4skr 3 года назад

    Thank you for explaining the program in detail

  • @sailesh2838
    @sailesh2838 9 месяцев назад

    Excellent teaching, thanks

  • @adwoapokua8172
    @adwoapokua8172 4 года назад

    please how did you get the auto insertion of the square bracket in the IDE

  • @ragde956
    @ragde956 4 года назад +1

    You are great! Thank you, simple and easy code!

  • @praneethd9436
    @praneethd9436 3 года назад +1

    Well explained in easiest method

  • @abhishekpathak9454
    @abhishekpathak9454 4 года назад

    Really owsm .. i like your full lacture series..🤗

  • @win_stonem_yer8737
    @win_stonem_yer8737 4 года назад

    wow thanks, i love your idea mam..its very clear and simple ,..i love it thanks

  • @IS-ye6yp
    @IS-ye6yp 2 года назад

    i really enjoyed this video it helped me understand perfectly what i was struggling on thank you and i have just subscribed to your channel

  • @shadanceacademy301
    @shadanceacademy301 4 года назад +1

    Great explanation 👍thanks a lot

  • @mekhalakarunaratne7427
    @mekhalakarunaratne7427 2 года назад

    This helped me so much, thanks :) 🙏

  • @950886994
    @950886994 5 лет назад +1

    Thank you its very great explanation. I love you

  • @debojitmandal8670
    @debojitmandal8670 3 года назад +1

    Mam in which playlist can I find linear search bcs I am learning based on playlist .

  • @techtouch4826
    @techtouch4826 3 года назад

    Is this built in function or not ???

  • @ahmedsarker3555
    @ahmedsarker3555 3 года назад

    8:53 your code doesnt work in mine

  • @Dopeboyz789
    @Dopeboyz789 5 лет назад

    How do you search or match two dataframes

  • @J_k910
    @J_k910 4 года назад +1

    hi mam, is there any video on data structures like linked list,stack,tree etc.pls upload

  • @tarunarulraj
    @tarunarulraj 3 года назад

    How to find the elements frequency pls maam

  • @avilashbhowmik3995
    @avilashbhowmik3995 3 года назад +1

    list_ = [9,2,6,7]
    print('[9,2,6,7]')
    search_ = int(input('Enter the number which you wanna pick up from the list : '))
    pos = -1 #Index start with 0 #(Global Variable)
    def search(list_,search_):
    for i in range(len(list_)):
    if list_[i] == search_:
    globals()['pos']=i #Local Variable
    return True
    return False
    if search(list_,search_):
    print(f'{search_} Found at {pos} no index.')
    else:
    print(f'Not Found {search_}')

  • @debojitmandal8670
    @debojitmandal8670 3 года назад +1

    Why do we need the 2nd for loop for list 2

    • @AmulsAcademy
      @AmulsAcademy  3 года назад

      Give me the program please :)

    • @debojitmandal8670
      @debojitmandal8670 3 года назад +1

      @@AmulsAcademy this program itself

    • @AmulsAcademy
      @AmulsAcademy  3 года назад

      I don’t have this program with me now and I forgot what I explained in this video, so if you give me the program I can explain :)

  • @vaibhavverma1340
    @vaibhavverma1340 2 года назад

    why you create functions instead of that we can do simply using "for loop" and if else ?

  • @meghasingh4467
    @meghasingh4467 2 года назад

    Thanks di...🌼🌼

  • @jaheerkalanthar816
    @jaheerkalanthar816 3 года назад +1

    Thank you explanation

  • @bananasplit3204
    @bananasplit3204 4 года назад

    can you add elements to the key? how?

  • @mrs.villager3654
    @mrs.villager3654 4 года назад

    Great! helped me a lot

  • @bhuvanb8975
    @bhuvanb8975 5 лет назад +1

    Mam
    Y dont u try datastructures in python.
    Llz do so mam

    • @AmulsAcademy
      @AmulsAcademy  5 лет назад +1

      sure :)

    • @bhuvanb8975
      @bhuvanb8975 5 лет назад

      Manually I am able to understand ur lectires.
      So i request you to make it ASAP
      I really need to learn datastructures and algorithms
      Thanking you,
      Your subscriber.

  • @sagar8540
    @sagar8540 3 года назад

    Gazab. Hi smjhaya h

  • @kidscreator2268
    @kidscreator2268 4 года назад +1

    Find a string from list which contains mixed variables by using loop

    • @AmulsAcademy
      @AmulsAcademy  4 года назад +1

      list1 = [1,2,3,"hello","a"]
      for i in list1:
      if type(i)==str:
      print(i)
      :)

  • @sivasurya4149
    @sivasurya4149 4 года назад +1

    Madam y use function..

    • @AmulsAcademy
      @AmulsAcademy  4 года назад +1

      If you don't want to use function here then don't use :)

  • @rudrashiva
    @rudrashiva 4 года назад

    Try this:
    x = [1,3,4,5,7,9,15,5,3]
    n = int(input("Enter the number you want to find: "))
    lst = []
    for i in range(0,len(x)):
    if x[i] == n:
    lst.append(i)
    if lst == []:
    print("Not found")
    else:
    print(lst)

  • @marynatalia5035
    @marynatalia5035 2 года назад

    Please how can I search a dictionary

  • @analysealgebre6723
    @analysealgebre6723 5 лет назад +1

    thank you

  • @hiddennetwork1518
    @hiddennetwork1518 3 года назад +1

    Mam please🙏 make a video on FINDING TIME COMPLEXITY FOR MAIN TOPICS OF DSA...

  • @Raviteja-vy7yh
    @Raviteja-vy7yh 2 года назад +1

    Madam out out correct gaa ravatam leddhu 😂😂😂❤️

  • @sivasankar.s9957
    @sivasankar.s9957 2 года назад

    Mam.... please upload a video for sine series and cosine series please mam....you have only upload for histogram.....

  • @shyamsanghvi731
    @shyamsanghvi731 2 года назад

    Are you from south.....

  • @uttiganesh5734
    @uttiganesh5734 5 лет назад +1

    Mam pls explain anagrams program

  • @up26walle95
    @up26walle95 4 года назад +1

    Mam your voice very sweet

  • @howdyl6456
    @howdyl6456 2 года назад

    how to let user decide which element he wants to see in the list? For example if user inputs 4 in your list, then 19 comes up

  • @shaikabdulsalam5157
    @shaikabdulsalam5157 Год назад

    no words to say🥰

  • @OADDANKILIKHITHA
    @OADDANKILIKHITHA 4 года назад +1

    I understood this program much clearly madam but at last in case of duplicates I did not understand why the flag variable is taken teacher

    • @AmulsAcademy
      @AmulsAcademy  4 года назад +1

      I took flag variable which stores Boolean value {True/False},Initially i will take its value as False[means initially i will take element is not found]. when element is found i will make it as True, other wise it will be False.
      You can skip That, When you find the element you can print the result and using else case you can print element is not found msg.

    • @OADDANKILIKHITHA
      @OADDANKILIKHITHA 4 года назад

      @@AmulsAcademyDo you mean that we can take else case instead of flag variable madam

  • @YASHKUMARJAIN
    @YASHKUMARJAIN 3 года назад +1

    thanku so much mam.
    please share ur linkedin profile

  • @themagicschool4877
    @themagicschool4877 5 лет назад +2

    Chuck

  • @alexanderjwilson7420
    @alexanderjwilson7420 3 года назад

    Good video

  • @iyyappan3754
    @iyyappan3754 2 года назад

    Nice video