Math Node Maya with Python script

Thank you very much for your reply and your time. I am trying both ways and with expressions and with nodes but no luck at the moment.