Skip to content

Commit bae5afc

Browse files
committed
python updates
- fixed typo in python/crafting2 - clarified step 2 instructions in python/wood5
1 parent b9c86da commit bae5afc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

python/hai2025/crafting2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ai.make_api_request(
3838
# Classifying Materials
3939

4040
## Step 1
41-
Next lets update the training data to add how to craft sticks. You'll notice in the `sticks` variable `O` represents an empty space and `B` represents an item.
41+
Next let's update the training data to add how to craft sticks. You'll notice in the `sticks` variable `O` represents an empty space and `B` represents an item.
4242

4343
```python
4444
training_data = {

python/hai2025/wood5.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ api_key = 'MC-KEY-821-597'
2828
Copy over the authentication parameters and updated endpoint under where it says `# add additional code below`.
2929

3030
## Step 2
31-
Then we need to use the provided crafting pattern inside of our training data.
31+
Then we need to use the provided crafting pattern inside of our training data. Unlike previous lessons, this time we'll be passing a variable called `wood_planks` to the training data that represents the crafting pattern.
3232

3333
```python
3434
training_data = {
3535
'crafting': wood_planks
3636
}
3737
```
3838
### ~ tutorialhint
39-
Copy over the updated training data.
39+
Copy over the updated training data. Make sure `wood_panks` is a variable and not a string. The `wood_planks` variable represents a stringified version of the crafting recipe.
4040

4141
## Step 3
4242
Finally, we need to call the ai.make_api_request() function.
@@ -55,7 +55,7 @@ Confirm your code matches the provided code and press the run button.
5555

5656
```python
5757
# crafting pattern
58-
crafting_bench = '''
58+
wood_planks = '''
5959
OO
6060
OB
6161
'''

0 commit comments

Comments
 (0)