Prisoners Delimma python code for Per 2 F2014