Step 18 Python beta

Someone please give me some tips. I don’t get the exact step question

Step 18

Declare a new variable named shifted. Use the bracket notation to access the value of alphabet at index index and assign it to your new variable.

text = ‘Hello World’

shift = 3

alphabet = ‘abcdefghijklmnopqrstuvwxyz’

index = alphabet.find(text[0].lower())

print(index)

hey @rafay356

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

2 Likes

Break it down into smaller parts, and focus on each one. Start with the first step:

1 Like

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