Buggy python submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!

def main():
    number_of_human = int(input())
    position_list = list(map(int,input().split()))
    
    start_position = min(position_list)
    end_position = max(position_list)
    
    answear_list = []
    
    while True:
        answear = sum([(item - start_position)**2 for item in position_list])
        if start_position == end_position:
            break
        start_position += 1
        answear_list.append(answear)
    
    print(min(answear_list))
    
if __name__ == "__main__":
    main()
    


Fixed submission:
# coding: utf-8
# Your code here!

def main():
    number_of_human = int(input())
    position_list = list(map(int,input().split()))
    
    start_position = min(position_list)
    end_position = max(position_list)
    max_answear = sum([(item - start_position)**2 for item in position_list])
    while True:
        answear = sum([(item - start_position)**2 for item in position_list])
        if start_position == end_position:
            break
        start_position += 1
        if answear < max_answear:
            max_answear = answear
    
    print(max_answear)
if __name__ == "__main__":
    main()

Buggy python submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!

import sympy

def cal_result(result_param,info_list):
    result = 0
    for num in info_list:
        num = int(num)
        result = result + (num-result_param)**2
    return result
    

def min_answear(info):
    param = sympy.Symbol('param')
    formula = sympy.Symbol('formula')
    
    formula = 0
    for num in info:
        num = int(num)
        calculate = sympy.Symbol('calculate')
        calculate = (num - param)**2
        formula = formula + calculate
        
    result_form = sympy.diff(formula , param)
    result = sympy.solve(result_form)
    result = str(result[0])
    result = result.split("/")
    result = int(result[0])/int(result[1])
    
    if result.is_integer():
        result = int(result)
        answear = cal_result(result,info)
    else:
        result1 = int(result)
        sub_answear1 = cal_result(result1,info)
        result2 = int(result) + 1
        sub_answear2 = cal_result(result2,info)
        if sub_answear1 <= sub_answear2:
            answear = sub_answear1
        else:
            answear = sub_answear2
    
    print(answear)
    
def main():
    join_num = int(input())
    
    join_info = input()
    join_info = join_info.split()
    min_answear(join_info)

if __name__ == "__main__":
    main()
    

Fixed submission:
# coding: utf-8
# Your code here!

def main():
    number_of_human = int(input())
    position_list = list(map(int,input().split()))
    
    start_position = min(position_list)
    end_position = max(position_list)
    max_answear = sum([(item - start_position)**2 for item in position_list])
    while True:
        answear = sum([(item - start_position)**2 for item in position_list])
        if start_position == end_position:
            break
        start_position += 1
        if answear < max_answear:
            max_answear = answear
    
    print(max_answear)
if __name__ == "__main__":
    main()