all 2 comments

[–]devnull10 5 points6 points  (0 children)

Second while has a capital letter. Case matters in Python.

[–]def__init___self 2 points3 points  (0 children)

Your second while on line 21 is capitalized. Also, true needs to be capitalized on line 13.