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

Показать описание
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******************
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******************
Комментарии