import math
arry=[1,2,3,4,5,6,7,8,9,10]
def calculate_percentile(arry, percentile):
size = len(arry)
index = math.ceil((size * percentile) / 100)
if index != 0:
index = index - 1
return sorted(arry)[int(index)]
percentile_25 = calculate_percentile(arry, 25)
percentile_50 = calculate_percentile(arry, 50)
percentile_75 = calculate_percentile(arry, 75)
# 2
print("The 25th percentile is:",percentile_25)
# 5
print("The 50th percentile is:",percentile_50)
# 7
print("The 75th percentile is:",percentile_75)