You can do this:
n = 19.879287624
n = int(n*100)/100
You will get 19.87.
I think it's pretty obvious, but in case it isn't: multiplying by 100 moves the decimal place to this right by two spaces, forcing it to be the int truncates the rest, then dividing that int by 100 moves decimal place back where it belongs
If you want to know more about the Data Science then do check out the following Data Science which will help you in understanding Data Science from scratch.