Using Python, write a program to find the most common element among a list of numbers
[4, 8, 9, 4, 6, 4, 8]
def most_frequent(list): 
    return max(set(list), key = list.count) 
  
list = [4, 8, 9, 4, 6, 4, 8]
print(most_frequent(list))