Learn String Manipulation by Building a Cipher

I just started with coding, so still need to learn a lot. And currently I’m learning something in Python, i’m at step 10 and it says is should print my new variable, but I couldn’t figure out how exactly to do that. Could someone help me with that please? Thanks in advance.

until now it was correct, now it says this, how do I do it correctly?:
And now print your new variable:

text = 'Hello World'
print(type(text))
shift = 3

it loooks like you already used print once, are you having issues on using it again?


can you share the link to the step?

until now it all worked and told me to use print, should i delete the old print? yes sure!
Thanks for that fast reply!

you don’t need to delete the old print, no. What have you tried? You did not share that

i’m just not sure how to print the shift = 3 (the variable) now, it says i should print the new variable
i tried it with print(text) or something or added 3 into it… I know that was wrong but just couldn’t figure out how to do it correctly…

if you do this you are printing the text variable, but you are asked to print the new variable, so you need to use the name of the new variable

i tried it with print(3) or print(variable), could you tell me what exactly to type?

what is the name of the new variable’?

before that step i had to write:

shift = 3

and now it says: now print the new variable, so 3

no, 3 is not the name of a variable, it’s a number.

ahh okay, thanks.
well step 10 is confusing right now

It seems there is some confusion on what a variable is:
a variable is something that holds values. For example:

my_var = 5

this variable is named my_var and I have assigned the number 5 to it

other_var = 'text'

this variable has the name other_var and I have assigned the string 'text' to it.

Do you have more questions on variables?

1 Like

how would i print the first one now?

you put the name of the variable in the parenthesis of print
If you have issues you could review step 4 in which you printed something for the first time

Ahh thank you so much! Now i understood, it worked, thanks!

For next time I suggest you use the Help button:

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

Thanks for the tip! I’ll do that next time