I'm currently attempting to find a way to change this for loop into a while loop, but i'm completely lost. i'm new to this whole python thing, so help would be really nice!
def ReturnConsonants(string):
newStr=""
vowels="aeiouAEIOU"
for i in string:
if not(i in vowels):
newStr+=i
return(newStr)
string=input("enter word: ")
print(ReturnConsonants(string))