does anyone know a way to turn this into a loop [closed]

Issue

This Content is from Stack Overflow. Question asked by Drek

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]



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?