Actions in python?

Hi, i wanted to know how to trigger actions via python script in game. i can do movement in python etc but ive been struggling with this for a long time.

Connect your controller to the action actuator.
Activate the actuator with:


# cont = the current controller
# actuator = your actuator e.g. cont.actuators["myActionActuator"]
 
cont.activate(actuator)
 
# for deactivation : cont.deactivate(actuator)