Snakes do not want to hurt you, they just want to hide. If found in the house try not to let them crawl away to somewhere inaccessible. Find an empty box, hat or similar light weight container and encourage the snake to hide under it. Now, slide something flat underneath e.g. piece of cardboard the same size or larger than the container. Make sure the snake is on top of the flat thing then careful lift both items off the floor and carry the snake outside to release.
Ants dont need killing either just feed them on e.g. honey where convenient and they will stop trailing all over ghe kitchen.