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(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