Lets say I have a list of strings verbs = ["win", "dig", "be", "go", "break]
etc. I figured out how to duplicate last letter and add "ing" to them. However how can I check if characters in those strings consisting of consonant-vowel-consonat?
I have two lists:
vowel = ["a", "e", "i", "o", "u"]
consonant = ["b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "y", "z"]
and here is code sample:
for ver in verbs:
if verb "I DON'T KNOW WHAT TO TYPE HERE":
verb = verb[:len(verb)] + verb[len(verb) - 1: len(verb)] + "ing"
- then do sth