Posts
How to Draw- Easy Lord Ganpati Ganesha Step by Step Tutorial for Kids
- Get link
- X
- Other Apps
Ex.No. #5(a) LINEAR SEARCH (Tamil)
- Get link
- X
- Other Apps
Ex. No. : 5(a) Linear Search Aim: To write a Python Program to perform Linear Search Program: items=[24,6,32,5,70] print("The list of Numbers",items) x=int(input("Enter the items to be searches :")) i=flag=0 while i<len(items): if items[i]==x: flag=1 break i=i+1 if flag==1: print("item is found :",i+1) else: print("item is not found")
Ex.No. #5(a) LINEAR SEARCH (English)
- Get link
- X
- Other Apps
Ex. No. : 5(a) Linear Search Aim: To write a Python Program to perform Linear Search Program: items=[24,6,32,5,70] print("The list of Numbers",items) x=int(input("Enter the items to be searches :")) i=flag=0 while i<len(items): if items[i]==x: flag=1 break i=i+1 if flag==1: print("item is found :",i+1) else: print("item is not found")
Ex.No. #4 FINDING MAXIMUM FROM A LIST OF NUMBERS (Tamil)
- Get link
- X
- Other Apps
Ex. No. :04 FINDING MAXIMUM FROM A LIST OF NUMBERS Program: list=[] list=[2,52,6] print(" Enter the number of elements : ") n=int(input()) print(" Enter the elements : ") for i in range(0,n): a = int(input()) list.append(a) max=list[0] for i in range(len(list)): if list[i]>max: max=list[i] print(" Maximum number is : ",max) ...
Ex.No.: #4 FINDING MAXIMUM FROM A LIST OF NUMBERS (English)
- Get link
- X
- Other Apps
Ex. No. :04 FINDING MAXIMUM FROM A LIST OF NUMBERS Program: list=[] list=[2,52,6] print(" Enter the number of elements : ") n=int(input()) print(" Enter the elements : ") for i in range(0,n): a = int(input()) list.append(a) max=list[0] for i in range(len(list)): if list[i]>max: max=list[i] print(" Maximum number is : ",max) ...