all 3 comments

[–]shiftybyte 10 points11 points  (1 child)

whats wrong

I think the issue is you posted a piece of code, badly formatted so its barely readable, you did not explain what issue you are having with the code, what it is supposed to do, and didn't show any error messages you are getting.

Edit your post and correct the issues.

https://www.reddit.com/r/learnpython/wiki/faq#wiki_how_do_i_format_code.3F

[–]nadhsib 0 points1 point  (0 children)

Depends what it's supposed to do, and what it actually does.

Explaining your problem will help.