Tell us what’s happening:
I need help understanding what I’m doing wrong please.
Your code so far
# User Editable Region
text = 'Hello World'
print(type(text))
shift = '3'
print(shift)
# 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/134.0.0.0 Safari/537.36
Challenge Information:
Learn String Manipulation by Building a Cipher - Step 9
Hi there,
So the lesson asks you to:
“As you can see, the output of printing type(text)
is <class 'str'>
, which means that your variable is a string, indicated as str
. Now go to a new line and create another variable called shift
and assign the value 3
to this variable.”
The issue in your code is that you have assigned the value 3
as a string ('3'
) instead of as a number (3
). In Python, numbers don’t need to be inside quotes to be recognized as numeric values.
So, you should assign 3
to shift
as a number, not as a string.
1 Like
Hello there, you should not have wrote the 3 with apostrophes. (AKA these ’ ’ ) you should write it like this.
shift = 3
Also, in step 9 you are NOT asked to print shift.
I hope this was of help. If you have any other questions feel free to ask. 
1 Like