SyntaxFix
Write A Post
Hire A Developer
Questions
There are 2 errors is this code:
1) You should remove this line, as it will reqrite x to an empty list:
x = []
2) In the first "if" statement, you should indent the "letter += 1" statement, like:
if x[i].isalpha(): letters += 1