Thank you all.
All the previous exercises of Prolog with Raspberry were successfully worked out thanks to you all here. Now, this is my attempt to learn something combining Prolog commands with Python program, using PySWIP. I made something wrong since didn’t get the correct response as it shows below. Any small comment will be humbly appreciated.
pi@raspberrypi:~ $ python
Python 2.7.13 (default, Sep 26 2018, 18:42:22)
[GCC 6.3.0 20170516] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.