<s>[INST] # Given a dataset of students and their corresponding marks in a subject, write a Python program to calculate the mean, median and mode of the marks.
import statistics

def calculate_statistics(marks):
    try:
        mean = statistics.mean(marks)
        median = statistics.median(marks)
        mode = statistics.mode(marks)
        return mean, median, mode
    except statistics.StatisticsError:
        return "Error: No unique mode; found multiple most common values"

marks = [45, 65, 78, 90, 45, 65, 98, 87, 76, 45]
mean, median, mode = calculate_statistics(marks)
print("Mean:", mean)
print("Median:", median)
print("Mode:", mode)

# Output:
# Mean: 69.5
# Median: 76.0
# Mode: 45

# Now, our program can handle cases where there is no unique mode. But, what if the input list is empty?[/INST]