# Write a Python program to check if the list contains three consecutive common numbers in Python # creating the arrayarr = [4, 5, 5, 5, 3, 8]  # size of the listsize = len(arr)  # looping till length - 2for i in range(size - 2):      # checking the conditions    if arr[i] == arr[i + 1] and arr[i + 1] == arr[i + 2]:          # printing the element as the         # conditions are satisfied         print(arr[i])