Skip to content

Commit ef30d24

Browse files
committed
updated explanation of running code and comments in re learnco students issue #2
1 parent e6d097c commit ef30d24

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@ So as data scientists, we often need to clean and organize data before we can ma
2323

2424
### Solving our first lab
2525

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.
2727

2828
For example, let's say we want to capitalize all of the letters of "art vandlay". We'll see the following:
2929

3030

3131
```python
32-
"art vandelay"
32+
"art vandelay" # "ART VANDELAY"
3333
```
3434

3535
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.
3636

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).
3838

3939

4040
```python
4141
'hello' ### whattttt
4242
```
4343

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.
4545

4646
> In future labs, Learn will check our code to ensure that we did it correctly. But for our first lab, this works fine.
4747

index.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"cell_type": "markdown",
7474
"metadata": {},
7575
"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",
7777
"\n",
7878
"For example, let's say we want to capitalize all of the letters of \"art vandlay\". We'll see the following:"
7979
]
@@ -86,7 +86,7 @@
8686
},
8787
"outputs": [],
8888
"source": [
89-
"\"art vandelay\""
89+
"\"art vandelay\" # \"ART VANDELAY\""
9090
]
9191
},
9292
{
@@ -100,7 +100,7 @@
100100
"cell_type": "markdown",
101101
"metadata": {},
102102
"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)."
104104
]
105105
},
106106
{
@@ -118,7 +118,7 @@
118118
"cell_type": "markdown",
119119
"metadata": {},
120120
"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."
122122
]
123123
},
124124
{

0 commit comments

Comments
 (0)