Python Program for Linear Search
Problem: Given an array arr[] of n elements, write a function to search a given element x in arr[] using Python. Examples : Input : arr[] = {10, 20, 80, 30, 60, 50, 110, 100, 130, 170} x = 110;Output : 6Element x is present at index 6Input : arr[] = {10, 20, 80, 30, 60, 50, 110, 100, 130, 170} x = 175;Output : -1Element x is not present in arr[].A