Input a list/tuple of elements search for a given element in the list/tuple | Class 11 Practical 14

preview_player
Показать описание
#computerscience #pythonpracticals #computerscienceclass11 #cbse
In this video I have explained the practical 14 of CBSE Class 11 Computer Science with python. I have explained the program to Input a list/tuple of elements search for a given element in the list/tuple

Source Code:
print(" Program to Input a list of elements and search for a given element in the list \n")
list=[]
num=int(input("How many Numbers in the list: "))
for n in range(num):
numbers=int(input('Enter Number'))
print("The Entered list is ",list)
length=len(list)
element=int(input("Enter the element to be searched for: "))
for i in range(0,length):
if element==list[i]:
print(element,"found at index",i,"and position: ", i+1)
break
else:
print(element," is not found!!!")

if you want video on any topic you can comment or contact.

#computerguruhub #sumitkumarnager #python #programming #list #pythontutorial #tuple #pythonprogramming #learnpython #coding #pythontutorialforbeginners #tuples #python3 #tuplesinpython #pythontuples #pythonforbeginners #socratica #dictionary #socraticacs #tutorial #programminginpython #howtoprograminpython #lists #socraticapython #pythonprogramminglanguage #machinelearning #computerscience #min #java #pythonlist #pythonbasics #datascience #sort #artificialintelligence #easy #howtostartprogramming #mysirgcom #mysirg #learn #sir #shukla #c #saurabh #hindi #clanguage #hackerrank #learnprogramming #howto #pycharm #count #elixir #listcomprehension #popi #inserti #indexx #x #removex #sumofalltheelementsofalistbysumfunction #reverse #createalistwithdistinctelement #software #development #extenditerable #dict #datatype #sequence #sequencedatatype #swapping #string #set #ae1205 #technology #tech #jupyternotebook #computer #print #mutability #output #removeduplicateelements #listusingconstructor #len #enumerate #any #all #maxsortedsumpythonlists #pythonsets #pythonforabsolutebeginners
Рекомендации по теме
Комментарии
Автор

sir ji app ki video na both help kiya h mara file project bana ne ma

GareyGaming
Автор

Thankyou sir for this video and practical explanation

SunitaDevi-vzof
Автор

Sir thank u sir apke wajah se me apne file complete kar saka😁

sabhyasachisahoo
Автор

Sir aap ye program kis app pe kar rahe hain notepad hain kya? Reply please

chetanhbb
Автор

Sir is this program also for tuple ??
If yes how ?
Append function is not for tuple then how we search elements in tuple?

shivani
Автор

Sir line 4 ma invalid syntax bata ra hai

yashdave