I am trying to make a function to detect how many digits, letter, spaces, and others for a string.
Here\'s what I have so far:
def count(x): leng
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