# Coding p-adic Newton's method to solve polynomials?

I'm confused as to how to code the p-adic Newton's method in order to solve polynomials, and specifying solutions to a specific number of p-adic digits. Any help?

Perhaps could you show your attempts, so that we can have a look, and possibly help where it is needed.