Learn String Manipulation by Building a Cipher - Step 28

Tell us what’s happening:

Your code raised an error before any tests could run. Please fix it and try again.

Your code so far


# User Editable Region

# Convert the text to lowercase and then iterate over it
for char in text.lower():
    index = some_string.find(char)
    if index != -1:
        # Process the found character
        print(f"Character '{char}' found at index {index} in some_string.")
    else:
        # Handle the case where the character is not found
        print(f"Character '{char}' not found in some_string.")



# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 28

Reset the step, read the instructions and try again please.

This is the only instruction:

change the for loop to iterate over text.lower()