I thought everything was properly indented here but I am getting an IndentationError: expected an indented block at the else: statement. Am I making an obvious mistake here?
def anti_vowel(text):
new_string = ""
vowels = "aeiou"
for letter in text:
for vowel in vowels:
if (lower(letter) == vowel):
#do nothing
else:
#append letter to the new string
new_string += letter
return new_string
pass. - Ashwini Chaudharyifblock and thought that you had… a comment isn't a statement. It's simplest to think of it as if comments get removed before the code gets parsed. - abarnert