number of occurance of a letter in a word

 word = input("Enter a word: ")

letter = input("Enter a letter: ") count = word.count(letter) print("The letter", letter, "occurs", count, "time(s) in the word", word)

Comments

Popular posts from this blog

Ecommerce website

Yes, Python is an object-oriented programming (OOP) language, but it is also a multi-paradigm language

Your task is to find the missing number.