text_plain_output_1.png
def linearsearch(arr, x):
    for i in range(len(arr)):
        if arr[i] == x:
            return i
    return -1
arr = ['10', '20', '30', '40', '50', '60', '70']
x = '50'
print('element nya ' + str(linearsearch(arr, x)))