Learn String Manipulation by Building a Cipher - Step 14

Tell us what’s happening:

Describe your issue in detail here.
So I’ve tried a variety of things, I’ve tried print.lowertext(text[0])
print(text.lower(text[0])
and niether have worked. can someone give me a suggestion ?

Your code so far

text = ‘Hello World’

shift = 3

alphabet = ‘abcdefghijklmnopqrstuvwxyz’

index = alphabet.find(text[0])

print(index)

lower(text)

print.lower (text [0])


# User Editable Region

text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
index = alphabet.find(text[0])
print(index)
lower(text)
print.lower (text [0])

# 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/120.0.0.0 Safari/537.36 Edg/120.0.0.0

Challenge Information:

Learn String Manipulation by Building a Cipher - Step 14

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

This is how you print index :white_check_mark:

You need to:

print text.lower()

Keep it simple, don’t overthink it. Just do exactly what it says. It doesn’t say anything about text[0], so dont try to add that. Just print text.lower().

This is not the correct syntax for print()
https://www.w3schools.com/python/ref_func_print.asp

print("Hello")
print(a)
print(variable)
print(var1, var2)
print(5 + 5)
print(variable.isalpha())
print(str.capitalize())

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.