Python program to do linear search of the given number in given list.
num = [2,4,3,5,8,9]
j = 0 #Flag
x = int(input("Enter number you want to search: "))
for i in range(len(num)):
if (x == num[i]):
print("Number is found at ", i)
j = 1
if(j==0):
print("Number not found")
Program for following pattern: • Write a python program to make the followi...
Swapping : • Python program to interchange first and la...
Print String with Delay of 3 sec : • Write a Python program to print a string f...
Adding Matrix: • Adding Matrices in Python
Subtracting Matrix: • Subtracting Matrices in Python
Area of triangle: • Python program to find Area and Perimeter ...
following Series: • Python program to make below series and re...
change from centigrade to farenheite: • Python Code to convert temperature from Ce...
Python program to enter name and marks
in a dictionary and diasplay information on screen: • Python program to enter name and marks in ...
#python #programming #coding #programmer #developer #code #software #tech #pythonproblem #function