# Build a Report Card Printer - 步骤2

**URL:** <https://forum.freecodecamp.org/t/build-a-report-card-printer-2/789541>\
**Category:** General\
**Tags:** english\
**Created:** [May 22, 2026, 1:52am UTC](https://forum.freecodecamp.org/t/build-a-report-card-printer-2/789541 "2026-05-22T01:52:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chanjieyag000](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/chanjieyag000/32/415795_2.png) [@chanjieyag000](https://forum.freecodecamp.org/u/chanjieyag000)\
**Post date:** [May 22, 2026, 1:52am UTC](https://forum.freecodecamp.org/t/build-a-report-card-printer-2/789541/1 "2026-05-22T01:52:07Z")

</div>

### 告诉我们发生了什么：

i already key in the correct code but it not work

### 到目前为止你的代码

```py
name = 'Alice'

# User Editable Region

name = 'Alice'
print(greeting) # Output:Alice 

# User Editable Region

```

### 你的浏览器信息：

用户代理是： `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36`

### 挑战信息：

Build a Report Card Printer - 步骤2

> **[freeCodeCamp.org](https://www.freecodecamp.org/chinese/learn/python-v9/workshop-report-card-printer/step-2)**
>
> 免费学习编程

GitHub Link: [i18n-curriculum/curriculum/challenges/chinese/blocks/workshop-report-card-printer/6947a0c2b6de035dd8d3eea1.md at main · freeCodeCamp/i18n-curriculum · GitHub](https://github.com/freeCodeCamp/i18n-curriculum/blob/main/curriculum/challenges/chinese/blocks/workshop-report-card-printer/6947a0c2b6de035dd8d3eea1.md)

---

<div class="post-metadata">

**Author:** ![Teller](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/teller/32/412338_2.png) [@Teller](https://forum.freecodecamp.org/u/Teller)\
**Post date:** [May 22, 2026, 1:55am UTC](https://forum.freecodecamp.org/t/build-a-report-card-printer-2/789541/2 "2026-05-22T01:55:18Z")

</div>

Welcome to the forum @chanjieyag000

Did you see the syntax error message in the console?

 ![image](https://global.discourse-cdn.com/freecodecamp/original/4X/c/9/3/c9320c1338692a0e988888e6f12c9805ceef3e02.png)

You need to use the variable already in the `main.py` file.

The `greeting` variable was used only as an example.

You did not need to assign the `name` variable twice.

Happy coding

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [June 19, 2026, 1:55am UTC](https://forum.freecodecamp.org/t/build-a-report-card-printer-2/789541/3 "2026-06-19T01:55:29Z")

</div>

Closed on June 19, 2026, 1:55am UTC

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