How to ask Python if a sensor is activated, BGE? I am a total beginner with python combined with BGE.
I wrote that: 

import bge


def main():

    cont = bge.logic.getCurrentController()
    own = cont.owner

    if MessageSensor.positive or MouseSensor.positive:
        MessageActuator.activate

main()


it doesn't work, what's wrong?
Clearly  MessageSensor &amp; MouseSensor &amp; MessageActuator are undefined. And the controller is the one how activate de actuator.

import bge
cont = bge.logic.getCurrentController()
own = cont.owner
MessageSensor = cont.sensors['NameOfSensor']
MouseSensor = cont.sensors['NameOfSensor']
MessageActuator = cont.actuators['NameOfActuator']

if MessageSensor.positive or MouseSensor.positive:
    cont.activate(MesageActuator)