3 ms·
a few typos in https://github.com/athoune/crack-my-math-captcha/blob/main/captcha.py https://github.com/athoune/crack-my-math-captcha/blob/main/c... In the ini
by gus_massa 1y ago
a few typos in https://github.com/athoune/crack-my-math-captcha/blob/main/captcha.py https://github.com/athoune/crack-my-math-captcha/blob/main/c...
In the initial table, the numbers with 8 are misspelled "height", "heighteen" and "heighty", that have a unexpected "h".
Near line 42 you have to check if b is zero, otherwise it prints something like "twenty zero" instead of "twenty".
- athoune 1y agoFixed. Thanks for the help.
- gus_massa 1y agoNitpicking: if op in "-/" and a < b: b, a = a, b I think you have to swap only for "-", because / shows to the user the pair "a*b" and "a".
- athoune 1y agoTest added : https://github.com/athoune/crack-my-math-captcha/commit/caabb2b1103556c4c80e03c845340d5a53cb4c64 https://github.com/athoune/crack-my-math-captcha/commit/caab...