How do you take out lice?

I have had lice before pretty bad. To get rid of it my mom and I used lice shampoo in the shower and after my shower, we used a comb to get some bugs out that way. It still might take a while but it gets rid of them. Make sure you get the eggs also. In the comb what looks like shampoo or conditioner that you didn't get out is probably lice eggs. Also, if you want to keep them away you can use a hair drier a lot because lice hate heat. Also they hate hair spray and short hair. Hope this helped! :)