Write Python Prograrm Count Number Consonant String Word O O Hint Use Built Function Len S Q37059149

python
Write a Python prograrm to count the number of the consonant(자음) in a string(word) o o Hint) You can use built-in function(leWrite a Python prograrm to count the number of the consonant(자음) in a string(word) o o Hint) You can use built-in function(len) Sample string: PenPineappleapplePen Expected output: 12 Show transcribed image text Write a Python prograrm to count the number of the consonant(자음) in a string(word) o o Hint) You can use built-in function(len) Sample string: PenPineappleapplePen Expected output: 12


Solution


s = input(“Enter a string: “)count = 0for ch in s: if

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.