Back to Freecodecamp

Step 2

curriculum/challenges/english/blocks/workshop-caesar-cipher/680a41ef5bfdc059cfd9d4b5.md

latest1.0 KB
Original Source

--description--

In previous lessons, you learned about different data types you can store in a variable. You just assigned an integer value. Now you need to assign a string, which is a sequence of characters enclosed by either single or double quotes:

py
string_1 = 'I am a string'
string_2 = "I am also a string"

Declare another variable called alphabet and assign the string abcdefghijklmnopqrstuvwxyz to this variable.

--hints--

You should declare a variable called alphabet. Pay attention to place the variable name at the beginning of the line.

js
({ test: () => assert(runPython(`_Node(_code).has_variable("alphabet")`)) })

You should assign the string abcdefghijklmnopqrstuvwxyz to your alphabet variable. Remember to use either single or double quotes to enclose the string.

js
({ test: () => assert(runPython(`
_Node(_code).find_variable("alphabet").is_equivalent("alphabet = 'abcdefghijklmnopqrstuvwxyz'")
`)) })

--seed--

--seed-contents--

py
--fcc-editable-region--

--fcc-editable-region--
shift = 5