Tell us what’s happening:
how do i passing it, i dont understand the term passing as an argument. i need a solution here
Your code so far
# User Editable Region
text = 'Hello World'
shift = 3
alphabet = 'abcdefghijklmnopqrstuvwxyz'
# 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/126.0.0.0 Safari/537.36 OPR/112.0.0.0
Challenge Information:
Learn String Manipulation by Building a Cipher - Step 14
Hi there and welcome to our community!
In the starting code for this step, you have this line:
alphabet.find('z')
This calls the find()
method on the alphabet
string, with the argument ‘z’. So, it searches for the character ‘z’ in alphabet
.
Instead of passing ‘z’ as an argument, you are asked to pass text[0]
(which is the first character of the text
string). So, the find()
method will now search for the character ‘H’ in the alphabet
string instead.
ty for your solution my friend, i figure this out after i did a break and i felt so stupid, with myselff xD ty
1 Like
Learning programming is humbling, but don’t feel stupid please. This is the feeling of learning and getting smarter, learn to love it!
2 Likes
ty buddy ty for the encouragement