# Build a Pin Extractor - Step 2

**URL:** <https://forum.freecodecamp.org/t/build-a-pin-extractor-step-2/800346>\
**Category:** Curriculum Help\
**Tags:** python\
**Created:** [September 16, 2026, 11:16am UTC](https://forum.freecodecamp.org/t/build-a-pin-extractor-step-2/800346 "2026-09-16T11:16:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lenhakas](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lenhakas/32/134324_2.png) [@lenhakas](https://forum.freecodecamp.org/u/lenhakas)\
**Post date:** [September 16, 2026, 11:16am UTC](https://forum.freecodecamp.org/t/build-a-pin-extractor-step-2/800346/1 "2026-09-16T11:16:19Z")

</div>

### Tell us what’s happening:

Step 2 doesn’t allow me to finish eventhough it is correct, The hint says that I need to declare the variable using “Let” or “const” which are not actually python… so I guess the tester is This is the message I get: Your code does not declare a variable named secret\_code with an empty string value. Add a proper variable declaration (e.g., using let or const) inside the function and assign ‘’ to it, and try again.

### Your code so far

```py
def pin_extractor(poem):
# User Editable Region
    secret_code:''
# User Editable Region

```

### Your browser information:

User Agent is: `Mozilla/5.0 (iPad; CPU OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6.2 Mobile/15E148 Safari/604.1 Brave`

### Challenge Information:

Build a Pin Extractor - Step 2

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/python-v9/workshop-pin-extractor/step-2)**
>
> Learn to Code for Free

 ![IMG_0135](https://global.discourse-cdn.com/freecodecamp/original/4X/5/c/9/5c95827c191b00c724fb5505a4e091db164c7c48.png)

GitHub Link: [freeCodeCamp/curriculum/challenges/english/blocks/workshop-pin-extractor/6852dd8486c7ee0171322950.md at main · freeCodeCamp/freeCodeCamp · GitHub](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/curriculum/challenges/english/blocks/workshop-pin-extractor/6852dd8486c7ee0171322950.md)

---

<div class="post-metadata">

**Author:** ![dhess](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dhess/32/406235_2.png) [@dhess](https://forum.freecodecamp.org/u/dhess)\
**Post date:** [September 16, 2026, 12:19pm UTC](https://forum.freecodecamp.org/t/build-a-pin-extractor-step-2/800346/2 "2026-09-16T12:19:27Z")

</div>

Welcome back @lenhakas,

Please review this theory lecture on how to declare a variable assignment: [Understanding Variables and Data Types - How Do You Declare Variables and What Are Naming Conventions to Name Variables? | Learn | freeCodeCamp.org](https://www.freecodecamp.org/learn/python-v9/lecture-understanding-variables-and-data-types/how-do-you-declare-variables-and-what-are-naming-conventions-to-name-variables)

Thank you for reporting the Socrates feedback issue. I’ve created a GitHub issue for that.

Happy coding
