Compute the median of a sequence of numbers in Python.
Sequence: [3, -2, 4, 7, 10, 12, 11, -4, 8]
import statistics 
sequence = [3, -2, 4, 7, 10, 12, 11, -4, 8]
median = statistics.median(sequence) 
print(median) # Output: 7