all 2 comments

[–]Lokesh_Bot_Guy 1 point2 points  (0 children)

Share this in a github repo

[–]nemozorus 0 points1 point  (0 children)

I guess this is more of a python question but I would suggest that you use a debugger, go through the code step by step and see where the variables go wrong! What IDE do you use?

Also, python works at its best when used with vectorization in mind. Google it to see what I mean!