SELECTING MULTIPLE OBJECTS using PYTHON

Does anyone know anything about Python scripting?

I am trying to select multiple objects using a python script.
Pseudocode:

Select Object A
Select Object B

Perform Boolean subtract on both

Any info will help

Thanks