Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(curriculum): New steps to teach lists #55167

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -8,180 +8,212 @@
"superBlock": "scientific-computing-with-python",
"challengeOrder": [
{
"id": "658212ba98182f3e855e85f9",
"id": "66694bfa435cef241f6f9a68",
"title": "Step 1"
},
{
"id": "65821c1c40ccac44adf38e6b",
"id": "66694eaaeb7d253049fa7883",
"title": "Step 2"
},
{
"id": "65821fcc010c3245718f2a06",
"id": "66694fc4bba24f33ca01fa5b",
"title": "Step 3"
},
{
"id": "65822308ded1ba4632f66aa3",
"id": "666951d2e4b27e3a3c72ca5f",
"title": "Step 4"
},
{
"id": "658225d560369446ece5518b",
"id": "6669539c1379793f9cb8917c",
"title": "Step 5"
},
{
"id": "6582267ef39f5047411c1743",
"id": "666aae6a5d30a71f1fd7749f",
"title": "Step 6"
},
{
"id": "65822773f4c60a479ec89f66",
"id": "666ab82c874add3c95145213",
"title": "Step 7"
},
{
"id": "65822934c8a0454803e3ef12",
"id": "666ab9013cd5563f2b39947a",
"title": "Step 8"
},
{
"id": "65822bd82d708c4895080c35",
"id": "658212ba98182f3e855e85f9",
"title": "Step 9"
},
{
"id": "65823040bdb32949d4c1a96f",
"id": "65821c1c40ccac44adf38e6b",
"title": "Step 10"
},
{
"id": "6582324b5d37fe4b622bc3c0",
"id": "65821fcc010c3245718f2a06",
"title": "Step 11"
},
{
"id": "6582352cbdbcde4d0c4f7b0b",
"id": "65822308ded1ba4632f66aa3",
"title": "Step 12"
},
{
"id": "65823634a308cb4d6bcc5fa6",
"id": "658225d560369446ece5518b",
"title": "Step 13"
},
{
"id": "66314f2add0a8b57da5d6d91",
"id": "6582267ef39f5047411c1743",
"title": "Step 14"
},
{
"id": "658238f7604f154ea9a23e1e",
"id": "65822773f4c60a479ec89f66",
"title": "Step 15"
},
{
"id": "65823b0167fd894f4a7ea60a",
"id": "65822934c8a0454803e3ef12",
"title": "Step 16"
},
{
"id": "65823bbbdb4eaa4f9d20a0fb",
"id": "65822bd82d708c4895080c35",
"title": "Step 17"
},
{
"id": "65823cfc74aa564ffc460489",
"id": "65823040bdb32949d4c1a96f",
"title": "Step 18"
},
{
"id": "65823dde36392f505a39f7c7",
"id": "6582324b5d37fe4b622bc3c0",
"title": "Step 19"
},
{
"id": "65823e87c9741750a22085a7",
"id": "6582352cbdbcde4d0c4f7b0b",
"title": "Step 20"
},
{
"id": "65823ff0d4b991510fade1a8",
"id": "65823634a308cb4d6bcc5fa6",
"title": "Step 21"
},
{
"id": "65824111a09164518320088d",
"id": "66314f2add0a8b57da5d6d91",
"title": "Step 22"
},
{
"id": "658244fdf4b0265334711664",
"id": "658238f7604f154ea9a23e1e",
"title": "Step 23"
},
{
"id": "65824561f3478e5371a33ae5",
"id": "65823b0167fd894f4a7ea60a",
"title": "Step 24"
},
{
"id": "658246c28575d653d1f89b59",
"id": "65823bbbdb4eaa4f9d20a0fb",
"title": "Step 25"
},
{
"id": "65824872894f59546e3084e2",
"id": "65823cfc74aa564ffc460489",
"title": "Step 26"
},
{
"id": "65824a1b16631c54fa524154",
"id": "65823dde36392f505a39f7c7",
"title": "Step 27"
},
{
"id": "65824c7b4e2da85597693dcf",
"id": "65823e87c9741750a22085a7",
"title": "Step 28"
},
{
"id": "65824dfdb6815d563b2d3256",
"id": "65823ff0d4b991510fade1a8",
"title": "Step 29"
},
{
"id": "6582507654b3ed5712341382",
"id": "65824111a09164518320088d",
"title": "Step 30"
},
{
"id": "658252f6b1526d57b103d48a",
"id": "658244fdf4b0265334711664",
"title": "Step 31"
},
{
"id": "658254db6e12485a48130f57",
"id": "65824561f3478e5371a33ae5",
"title": "Step 32"
},
{
"id": "658255d5f955175b270f251d",
"id": "658246c28575d653d1f89b59",
"title": "Step 33"
},
{
"id": "6582575b8089f85b8b92d7c8",
"id": "65824872894f59546e3084e2",
"title": "Step 34"
},
{
"id": "658258c0e5fbe85c14c060cf",
"id": "65824a1b16631c54fa524154",
"title": "Step 35"
},
{
"id": "65825a9520a0795c8afbef50",
"id": "65824c7b4e2da85597693dcf",
"title": "Step 36"
},
{
"id": "65825b758fe85a5cebabc8c5",
"id": "65824dfdb6815d563b2d3256",
"title": "Step 37"
},
{
"id": "65825cda2668995d5168e37c",
"id": "6582507654b3ed5712341382",
"title": "Step 38"
},
{
"id": "65825e96b5db5f5dee6bf57c",
"id": "658252f6b1526d57b103d48a",
"title": "Step 39"
},
{
"id": "6582601b2987045e8e7da994",
"id": "658254db6e12485a48130f57",
"title": "Step 40"
},
{
"id": "6582622cb6c11a5f4c5d79b4",
"id": "658255d5f955175b270f251d",
"title": "Step 41"
},
{
"id": "6582687859366a618424d84b",
"id": "6582575b8089f85b8b92d7c8",
"title": "Step 42"
},
{
"id": "65826a6e9d189a623141c726",
"id": "658258c0e5fbe85c14c060cf",
"title": "Step 43"
},
{
"id": "65826af5b226a5628aa154b1",
"id": "65825a9520a0795c8afbef50",
"title": "Step 44"
},
{
"id": "65825b758fe85a5cebabc8c5",
"title": "Step 45"
},
{
"id": "65825cda2668995d5168e37c",
"title": "Step 46"
},
{
"id": "65825e96b5db5f5dee6bf57c",
"title": "Step 47"
},
{
"id": "6582601b2987045e8e7da994",
"title": "Step 48"
},
{
"id": "6582622cb6c11a5f4c5d79b4",
"title": "Step 49"
},
{
"id": "6582687859366a618424d84b",
"title": "Step 50"
},
{
"id": "65826a6e9d189a623141c726",
"title": "Step 51"
},
{
"id": "65826af5b226a5628aa154b1",
"title": "Step 52"
}
],
"helpCategory": "Python"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
id: 658212ba98182f3e855e85f9
title: Step 1
title: Step 9
challengeType: 20
dashedName: step-1
dashedName: step-9
---

# --description--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
---
id: 65821c1c40ccac44adf38e6b
title: Step 2
title: Step 10
challengeType: 20
dashedName: step-2
dashedName: step-10
---

# --description--

A list in Python is a built-in data type that allows you to store many items in a single data structure. In Python, you create a list by putting items inside square brackets (`[]`), with each item separated from the following one by a comma.

```py
numbers = [1, 2, 3, 4]
```

Use a pair of square brackets to create an empty list named `expenses`. You will use it to store each of your expenses.
Create an empty list named `expenses`. You will use it to store each of your expenses.

# --hints--

Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
---
id: 65821fcc010c3245718f2a06
title: Step 3
title: Step 11
challengeType: 20
dashedName: step-3
dashedName: step-11
---

# --description--

The `expenses` parameter of your `add_expense` function will be a list of expenses. You want to be able to add items at the end of your list. For that you'll use the `.append()` list method:
The `expenses` parameter of your `add_expense` function will be a list of expenses. You want to be able to add items at the end of your list. For that you'll use the `.append()` list method.

```py
my_list = [2, 4, 7]
my_list.append(3)
```

In the example above, after appending `3`, `my_list` would be `[2, 4, 7, 3]`.

Replace `pass` with a call to the `.append()` method on the `expenses` list. Don't pass any arguments to `.append()` for now.
Add a call to the `.append()` method on the `expenses` list. Don't pass any arguments to `.append()` for now.

# --hints--

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
id: 65822308ded1ba4632f66aa3
title: Step 4
title: Step 12
challengeType: 20
dashedName: step-4
dashedName: step-12
---

# --description--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
id: 658225d560369446ece5518b
title: Step 5
title: Step 13
challengeType: 20
dashedName: step-5
dashedName: step-13
---

# --description--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
id: 6582267ef39f5047411c1743
title: Step 6
title: Step 14
challengeType: 20
dashedName: step-6
dashedName: step-14
---

# --description--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
id: 65822773f4c60a479ec89f66
title: Step 7
title: Step 15
challengeType: 20
dashedName: step-7
dashedName: step-15
---

# --description--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
id: 65822934c8a0454803e3ef12
title: Step 8
title: Step 16
challengeType: 20
dashedName: step-8
dashedName: step-16
---

# --description--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
id: 65822bd82d708c4895080c35
title: Step 9
title: Step 17
challengeType: 20
dashedName: step-9
dashedName: step-17
---

# --description--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
id: 65823040bdb32949d4c1a96f
title: Step 10
title: Step 18
challengeType: 20
dashedName: step-10
dashedName: step-18
---

# --description--
Expand Down
Loading
Loading