import statistics
 
#list1 = [2, 4, 1, 6, 5, 3, 7] #sorted(1, 2, 3, 4, 5, 6, 7)
list1 = [2, 4, 1, 6, 5, 3] #sorted(1, 2, 3, 4, 5, 6)

# Print median of the data-set
print("Low Median of the set is: % s " % (statistics.median_low(list1)))

# Median value may or may not lie within the data-set
print("Median of the set is: % s" % (statistics.median(list1)))