Python
"""Q2: Find the number of occurrences of a number in a given list
my_ls = [1,3,3, 4,4,4,4, 5,5,5,6,6,6,6,6,7,8,88,9,9] """


my_ls = [1,3,3, 4,4,4,4, 5,5,5,6,6,6,6,6,7,8,88,9,9]
x=len(my_ls)
print("Length of list is:",x)

idx=0
i=0
while idx<=19:
    z=my_ls[idx]
    print("number is:",z)
        while idx<= 19:
            if my_ls[idx]==z:
                i=i+1
                print(i)
                idx=idx+1
            else:
            print("end")
        idx=idx+1
line 14
    while idx<= 19:
IndentationError: unexpected indent