ok
1. do not copy and past this code into python interpreter instead of that open a new python file ****.py and open it with python idle and press F5 (or Run)
2. I'm using python 2.7 so this code may or may not work with the latest python 3 coz they are not backward compatible.
def...