Python Program to Search a Number in List - In Hindi

preview_player
Показать описание
Python Program to Search a Number in List - In Hindi - Tutorial#72

In this video I have explained a program in which you have to search a number in a list. This is basically a search program in which you have to accept a list and then you have to ask a number to be searched. You have to search that whether a given number is present in the list.

Tags Used:

linear search
sequential search
linear search program in python
linear search program in python in hindi
python program to search an element a the list
python program to perform linear search
sequential search in python
list search python
python linear search
python search
search an element in a list

#codeitup
#List
#python
Рекомендации по теме
Комментарии
Автор

You are best teacher in this world.no words to say in your appreciation, Thank you so much sir

reenasrivastava
Автор

Sir Maine puri python lockdown m aapke channel se hi sikhi h Or C b yhi se sikhugi
Nice explanation sir

jayarana
Автор

What an explanation sir soooo much..i watched your video whenever i required....amazing explanation...thnq thnq so much

renusindhu
Автор

Sir bahut accha padhte ho aap aisi video

surviwallah
Автор

Sir please make a video on question no.3. You missed the question no.3

manugarg
Автор

Thank you so much sir ! Your videos helps a lot for students like me🙏🙏🙏

shreykumar
Автор

Thank you so much sir... Best explanation👍

RIYA-zwnn
Автор

Thanks sir for such a nice and clean concept.

BABLISINGH-wfdw
Автор

Heartful thanks to u sir for ur effort to teach us. 🙏

debashreesarkar
Автор

a=[]
size=int(input("How many elements u want to enter??"))
for i in range(size):
val=int(input("Enter items.:"))
a.append(val)

s=int(input("Enter no. to search: "))
print("Element found at", a.index(s)+1, "position")

Helly
Автор

Thank you so so much sir for explaining this question . Really helpful

shristi
Автор

Sir your each and every video very understandable, can you please advise me if you provide online class with certificate

dbjee
Автор

a=[]
b=int(input())
for i in range(b):
c=int(input())
a.append(c)
x=int(input('search the number'))
print(a)
print(a.index(x))

shivomarora
Автор

a=[]
size=int(input("How Many Number You Want To enter "))
for i in range(0, size):
val=int(input("Enter Number "))
a.append(val)
key=int(input("Enter Number To search Number "))
print(a.index(key)+1)

faizalkhalifa
Автор

sir is flag is necessary to add in the program because i did it without using flag. Plz check




search=[]
size=int(input('Enter the size of the list: '))

for i in range(size):
nums=int(input(f'Enter the item at {i}: '))
search.append(nums)
print(search)

num_search=int(input('Enter the number you want to search: '))
for i in range(size):
if search[i]==num_search:
p=i+1
break
print('Found at ', p)

shivanshsingh
Автор

is this program more easier to understand
(it asks user to enter how many times)
(then enters elements in list)
(then prints the list and use the index() to find the indexing of the number)

a = [ ]
num = int(input("enter how many numbers: "))
for i in range(num):
b = int(input("enter the numbers"))
a.append(b)

print(a)
n = int(input("number you want to find"))
found = a.index(n)
print("we have found the number at pos: ", found)

regdenbhutia
Автор

You missed the no 3 program sir..
Please make a video for no 3 question in your list.😔

rakeshdutta
Автор

What happened if list contains repeated elements?
I think program doesn't work?

ashishyadav
Автор

Sir assembly language per bhi video banao

ParveshKumar-tzir
Автор

Sir Newton raphson par ek python programming banaye

sayansagar
join shbcf.ru