Showing up to class is a opportunity to learn something new, not slack off in the back on your electronic device (as most students do these days). Take that opportunity to ask your teachers for further help. Dropping out of a class or school in general would be the worst decision you'd make.
In other words, stay in school. :)