Write a function that accepts a string and returns a dictionary with the number of digits and letters. Input String : "Python 3.2" Expected Output : {'Letters': 6, 'Digits': 2}
Learn more efficiently, for free:
Introduction to Python
7.1M learners
Introduction to Java
4.7M learners
Introduction to C
1.5M learners
Introduction to HTML
7.5M learners