I want to know how many numbers are greater than 7 in the 'a' list.
Note: I'm using slicing because in the case I'm putting in practice, I do not know how many items you have on the list.
a=[5, 10, 6, 8]
qmaior= a.count([:-1])>7
When executed, the syntax error.