MCPcopy Create free account
hub / github.com/geekcomputers/Python / count_con

Function count_con

consonant.py:16–23  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

14
15
16def count_con(string):
17 c = 0
18 for i in range(len(string)):
19 if (
20 string[i] not in string_check
21 ): # counter increases if the character is not vowel
22 c += 1
23 return c
24
25
26counter = count_con(my_string)

Callers 1

consonant.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected