What is the purpose of a try block in Python?

A. to handle an error without the program crashing
B. to try a math operation to see if the results is large or small enough
C. to try to get input to see if the program is being used
D. to try to print something to see if a printer is avaliable

A. to handle an error without the program crashing