""" Write a program that accepts a sentence and calculate the number of letters and digits """

def noOfLettersAndDigits():
    string = input("Enter String: ")
    letters = sum(c.isalpha() for c in string)
    digits = sum(d.isdigit() for d in string)
    print("LETTERS", letters)
    print("DIGITS", digits)

noOfLettersAndDigits()

eb1510425a7e0c4e7d0010384a46118339636f2e
<mask token>

<mask token>


def noOfLettersAndDigits():
    string = input('Enter String: ')
    letters = sum(c.isalpha() for c in string)
    digits = sum(d.isdigit() for d in string)
    print('LETTERS', letters)
    print('DIGITS', digits)


<mask token>

<mask token>


def noOfLettersAndDigits():
    string = input('Enter String: ')
    letters = sum(c.isalpha() for c in string)
    digits = sum(d.isdigit() for d in string)
    print('LETTERS', letters)
    print('DIGITS', digits)


noOfLettersAndDigits()

""" Write a program that accepts a sentence and calculate the number of letters and digits """

def noOfLettersAndDigits():
    string = input("Enter String: ")
    letters = sum(c.isalpha() for c in string)
    digits = sum(d.isdigit() for d in string)
    print("LETTERS", letters)
    print("DIGITS", digits)

noOfLettersAndDigits()
