Learn String Manipulation by Building a Cipher - Step 2

Tell us what’s happening:

hi so i have typed four code in
text = “hello world”
1.T = “hello world”
2.string = print(“hello wolrd”)
3.text = “hello world”
3.print = text my question is how can i asssign the hello world to the text.il here.

Your code so far


# User Editable Region

text = "hello wolrd"

# 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 2

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.

Tell us what’s happening:

how can i assign the string “hello world” to the text
hi so im having a hard time assigning the string to the text for the out put now its printing in terminal however when i checked the console it said i needed to assign the sting to the text is there anything im doing wrong please let me know when you can thank you.

Your code so far


# User Editable Region

text = string1 ="hello world"
print(string1)

# 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 2

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.

Delete your number variable and its value. Then, declare another variable called text and assign the string Hello World to this variable.

You don’t need string1 anywhere in this code. You only need the variable name text.
The string value should match exactly what is specified in the instructions above however (including capitalisation).

1 Like

the instruction clearly states u to

assign the string Hello World to this variable.

type exact string given in the instruction (case sensitive)

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