i wrote a py script to fetch page from web,it just read write permission enough,so my question is when we need execute permission?
If you want to be able to run it directly with $ file.py then you'll need the execute bit set. Otherwise you can run it with $ python file.py.
when we need chmod +x file.py