Linear Search in Python | Tamil | Quick Through #PythonProgramming #QuickThrough #AnnaUniversity

preview_player
Показать описание
Hello Guys !

In this video, we are going to see
Linear search in python.

************************************

Algorithm:
1. Start the program .
2. Read the given elements from the users.
3. Read the elements to be searches.
4. If items[i]==x, then print the position of the item.
5. Else increament the position and repeat.
6. Until I reaches the length of the list.
7. The item is not in the list ,then print item found.
8. End the program.

*****************************************

Source Code:

ITEMS=[5,10,12,45]
print("list of item is.", ITEMS)
x=input('enter the item you want to search : ')
i=flag=0
while i (less than) len(ITEMS): --(Angled brackets are not allowed ion in description )
if ITEMS[i]==x:
flag=1
break
i=i+1
if flag==1:
print(“item found at position :”,i+1)
else:
print(“item not found”)

***********************************************
keywords:
what is linear search in tamil, how to linear search in python tamil,
linear search python quick through , linear search python tamil quick
through, linear search i python , linear , search , linear search in tamil

**************************************************

Watch the Video fully Guys and Please show your support to
us by subscribing this channel.

*************Thanks For Watching******************
Рекомендации по теме
Комментарии
Автор

Vera level anna
Nallaa thelivaa purinjithu

arunsanjay
Автор

Great job brother👍3 days ha Famous aana ella youtube channel la pathutan ellarum search nu keywrd use pannaga but neenga mattum than logical ha wrk panniga super bro keep it up👍👍👍

anjalianjali
Автор

Position na index value thana appo 2 thana varanum neega print la i nu koduthava pothum bro

PremKumar-bsbq
Автор

REMOVE THE BACKGROUND IT'S IRRITATING NOT ABLE TO LISTEN

ModernEducationYt
Автор

bro suppose list la duplicate values irundha naamba more than one position output la kaatanumla, adhuku enna pandrathu!

whysoserious
Автор

Bro music konjam, disturb pannuthu bro

cute_boy_editing
Автор

⚠️ Bro one doubt flag use pannama intha code poda mudiyuma? If x== item[I]: adutha Statment la ye position na print pannalamla?

sarahcharlotte
Автор

ethuku bro flag=1 nu declare panniga? pls tell me

monish
join shbcf.ru