does anyone know a way to turn this into a loop

Viewed 32

I want to iterate through every consonant at the beginning of a word an put into the first variable and store the rest in rest

if inpu[1] == 'b' 'c' 'd' 'f' 'g' 'h' 'j' 'k' 'l' 'm' 'n' 'p' 'q' 'r' 's' 't' 'v' 'w' 'x' 'y' 'z':
        rest = inpu[2:]
        first = inpu[0:2]
0 Answers
Related