Your code style could/should be improved. You use a lot of redundant brackets (usually after if, elif, etc.) and sometimes semi-colons. Also some of your functions are really very long and could be more DRY... For checking style you can use http://flake8.pycqa.org
Your code style could/should be improved. You use a lot of redundant brackets (usually after
if
,elif
, etc.) and sometimes semi-colons. Also some of your functions are really very long and could be more DRY... For checking style you can use http://flake8.pycqa.orgYour solution works, so you get 5 points.