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: foundations/getting-started-python/basic-python.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,23 +72,23 @@ On Windows, open **Anaconda Prompt**. On a Mac or Linux machine, simply open **T
72
72
$ cd ..
73
73
```
74
74
75
-
9. And now that you've set up our workspace, open a Jupyter notebook.
75
+
9. And now that you've set up our workspace, open a Jupyter notebook called `mysci.ipynb`.
76
76
77
77
```
78
78
jupyter lab
79
79
```
80
80
81
-
10. In the Jupyter session, create a blank Python script, called `mysci.ipynb`, you can do this from the "File" drop-down menu.
81
+
Then, in the Jupyter session, create a blank notebook from the "File" drop-down menu.
82
82
83
-
11. In a code cell enter and execute the classic first command - printing, "Hello, world!".
83
+
10. In a code cell enter and execute the classic first command - printing, "Hello, world!".
84
84
85
85
```python
86
86
print("Hello, world!")
87
87
```
88
88
89
89
You'll see that the cell output is executed right below each cell.
90
90
91
-
12. In a new cell, let's read the first 4 lines from our datafile.
91
+
11. In a new cell, let's read the first 4 lines from our datafile.
92
92
93
93
```python
94
94
# Read the data file
@@ -116,7 +116,7 @@ You'll see that the cell output is executed right below each cell.
116
116
117
117
Comments in Python are indicated with a hash, as you can see in the first line `# Read the data file`. Comments are ignored by the interpreter.
118
118
119
-
13. In a new cell, read your whole data file:
119
+
12. In a new cell, read your whole data file:
120
120
121
121
```python
122
122
# Read the data file
@@ -136,7 +136,7 @@ You'll see that the cell output is executed right below each cell.
136
136
137
137
Try `print('data')`as well. Now Python will print the string `data`, as it did for the hello world function, instead of the information stored in the variable data.
138
138
139
-
14. Let's read your whole data file using a context manager `with`, in a new cell:
139
+
13. Let's read your whole data file using a context manager `with`, in a new cell:
140
140
141
141
```python
142
142
# Read the data file
@@ -154,7 +154,7 @@ You'll see that the cell output is executed right below each cell.
154
154
155
155
Combined these two lines mean: with the datafile opened, I'd like to read it.
156
156
157
-
15. What did we just see? What is the data object? What typeis data? How do we find out?
157
+
14. What did we just see? What is the data object? What typeis data? How do we find out?
0 commit comments