Back to Freecodecamp

Step 2

curriculum/challenges/english/blocks/learn-regular-expressions-by-building-a-password-generator/6564683821b2ee3174e7250e.md

latest952 B
Original Source

--description--

You can access the utilities defined inside the imported module through the dot notation. The dot notation works by appending a dot followed by the utility name to the module name. For example, here's how to access the ascii_lowercase constant:

py
import string


print(string.ascii_lowercase)
# Output: abcdefghijklmnopqrstuvwxyz

In this project, you are going to use different constants from the string module.

Declare a new variable called letters and assign string.ascii_letters to this variable.

--hints--

You should declare a variable named letters.

js
({ test: () => assert(__userGlobals.has("letters")) })

You should assign string.ascii_letters to your letters variable.

js
({ test: () => assert(runPython(`
    import string
    letters == string.ascii_letters
  `))
})

--seed--

--seed-contents--

py
--fcc-editable-region--
import string


--fcc-editable-region--