You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,25 +23,25 @@ So as data scientists, we often need to clean and organize data before we can ma
23
23
24
24
### Solving our first lab
25
25
26
-
This is our first lab, and here we'll see that there is some data already provided for us. Next to the data, we will see a comment indicating what the data should look like after we change it. Let's do the first one together.
26
+
This is our first lab, and here we'll see that there is some data already provided for us. Next to the data, we will see a comment indicating what the data should look like after we change it.
27
27
28
28
For example, let's say we want to capitalize all of the letters of "art vandlay". We'll see the following:
29
29
30
30
31
31
```python
32
-
"art vandelay"
32
+
"art vandelay"# "ART VANDELAY"
33
33
```
34
34
35
35
Notice that there is no output below the gray code above. This is because Jupyter notebooks do not automatically run our code - so they do not automatically know the output. To display the output, we must **run** the code by clicking on the gray cell and then pressing shift + enter. Let's try it in the cell above and see our output appear below.
36
36
37
-
Ok, once we see the output take a look at the cell below with the hash tag to the right of the string, `'hello'`. This is a comment. Comments are used for programmers to annotate their code, but a comment has no impact on the code. See this by running the cell below (again, press shift + enter).
37
+
Ok, once we see the output take a look at the cell below with the hash tag to the right of the string, `'hello'`. This is a comment like the above. Comments are used for programmers to annotate their code, but a comment has no impact on the code. We can see this by running the cell below (again, press shift + enter).
38
38
39
39
40
40
```python
41
41
'hello'### whattttt
42
42
```
43
43
44
-
After pressing shift+enter on the cell above, we see that Python happily ignores the comment. So here (and in future labs), a comment will be provided to indicate what we should see as the return value of our code. When we press shift+enter, and the output below matches the comment to the right of our code, we did it correctly.
44
+
After pressing shift+enter on the cell above, we see that still Python happily ignores our comment. So here (and in future labs), a comment will be provided to indicate what we should see as the return value of our code. When we press shift+enter, and the output below matches the comment to the right of our code, we did it correctly.
45
45
46
46
> In future labs, Learn will check our code to ensure that we did it correctly. But for our first lab, this works fine.
Copy file name to clipboardExpand all lines: index.ipynb
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@
73
73
"cell_type": "markdown",
74
74
"metadata": {},
75
75
"source": [
76
-
"This is our first lab, and here we'll see that there is some data already provided for us. Next to the data, we will see a comment indicating what the data should look like after we change it. Let's do the first one together. \n",
76
+
"This is our first lab, and here we'll see that there is some data already provided for us. Next to the data, we will see a comment indicating what the data should look like after we change it. \n",
77
77
"\n",
78
78
"For example, let's say we want to capitalize all of the letters of \"art vandlay\". We'll see the following:"
79
79
]
@@ -86,7 +86,7 @@
86
86
},
87
87
"outputs": [],
88
88
"source": [
89
-
"\"art vandelay\""
89
+
"\"art vandelay\" # \"ART VANDELAY\""
90
90
]
91
91
},
92
92
{
@@ -100,7 +100,7 @@
100
100
"cell_type": "markdown",
101
101
"metadata": {},
102
102
"source": [
103
-
"Ok, once we see the output take a look at the cell below with the hash tag to the right of the string, `'hello'`. This is a comment. Comments are used for programmers to annotate their code, but a comment has no impact on the code. See this by running the cell below (again, press shift + enter)."
103
+
"Ok, once we see the output take a look at the cell below with the hash tag to the right of the string, `'hello'`. This is a comment like the above. Comments are used for programmers to annotate their code, but a comment has no impact on the code. We can see this by running the cell below (again, press shift + enter)."
104
104
]
105
105
},
106
106
{
@@ -118,7 +118,7 @@
118
118
"cell_type": "markdown",
119
119
"metadata": {},
120
120
"source": [
121
-
"After pressing shift+enter on the cell above, we see that Python happily ignores the comment. So here (and in future labs), a comment will be provided to indicate what we should see as the return value of our code. When we press shift+enter, and the output below matches the comment to the right of our code, we did it correctly."
121
+
"After pressing shift+enter on the cell above, we see that still Python happily ignores our comment. So here (and in future labs), a comment will be provided to indicate what we should see as the return value of our code. When we press shift+enter, and the output below matches the comment to the right of our code, we did it correctly."
0 commit comments