You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a function called numbers_letters_count defined as follows:
def numbers_letters_count(my_str):
The function accepts as a string parameter.
The function returns a list in which the first member represents the number of digits in the string, and the second member represents the number of letters in the string, including spaces, periods, punctuation marks, and anything other than digits.
An example of running the numbers_letters_count function: