|
18 | 18 | "cell_type": "markdown",
|
19 | 19 | "metadata": {},
|
20 | 20 | "source": [
|
21 |
| - "Now that you know about variables, you want to use them to associate them with some data. Here, we will be using variables to store information related to a vacation that we would like to go on.\n", |
| 21 | + "Now that we know about variables, we want to put them to use by associating them with some data. Here, we will be using variables to store information related to a vacation that we would like to go on.\n", |
22 | 22 | "\n",
|
23 | 23 | "Just as before, we ask you to run the code and ensure that it matches what is commented out."
|
24 | 24 | ]
|
|
49 | 49 | "cell_type": "markdown",
|
50 | 50 | "metadata": {},
|
51 | 51 | "source": [
|
52 |
| - "Assign a variable of `travel_month` equal to the string \"January\", as that is the month you would like to travel." |
| 52 | + "Assign a variable of `travel_month` equal to the string \"January\", as that is the month we would like to travel." |
53 | 53 | ]
|
54 | 54 | },
|
55 | 55 | {
|
56 | 56 | "cell_type": "code",
|
57 |
| - "execution_count": 7, |
| 57 | + "execution_count": 1, |
58 | 58 | "metadata": {
|
59 | 59 | "collapsed": true
|
60 | 60 | },
|
|
67 | 67 | "cell_type": "markdown",
|
68 | 68 | "metadata": {},
|
69 | 69 | "source": [
|
70 |
| - "> We start by setting the variable equal to the data type None. As you know, `None` represents the absence of a value. And now you can take care of assigning the variable to something other than `None`." |
| 70 | + "> We start by setting the variable equal to the data type None. As we know, `None` represents the absence of a value. Now we can take care of assigning the variable to something other than `None`." |
71 | 71 | ]
|
72 | 72 | },
|
73 | 73 | {
|
74 | 74 | "cell_type": "code",
|
75 |
| - "execution_count": 8, |
76 |
| - "metadata": {}, |
| 75 | + "execution_count": 2, |
| 76 | + "metadata": { |
| 77 | + "collapsed": true |
| 78 | + }, |
77 | 79 | "outputs": [],
|
78 | 80 | "source": [
|
79 | 81 | "travel_month # \"January\""
|
|
83 | 85 | "cell_type": "markdown",
|
84 | 86 | "metadata": {},
|
85 | 87 | "source": [
|
86 |
| - "Now let's assign a variable equal to the number of weeks that you would like to travel, 3. " |
| 88 | + "Now let's assign a variable equal to the number of weeks that we would like to travel, 3. " |
87 | 89 | ]
|
88 | 90 | },
|
89 | 91 | {
|
90 | 92 | "cell_type": "code",
|
91 |
| - "execution_count": 9, |
| 93 | + "execution_count": 3, |
92 | 94 | "metadata": {
|
93 | 95 | "collapsed": true
|
94 | 96 | },
|
|
99 | 101 | },
|
100 | 102 | {
|
101 | 103 | "cell_type": "code",
|
102 |
| - "execution_count": 10, |
| 104 | + "execution_count": 4, |
103 | 105 | "metadata": {
|
104 | 106 | "collapsed": true
|
105 | 107 | },
|
|
112 | 114 | "cell_type": "markdown",
|
113 | 115 | "metadata": {},
|
114 | 116 | "source": [
|
115 |
| - "Now, you just learned that you can travel for a longer period of time. So reassign the `number_of_weeks` variable equal to `5`." |
| 117 | + "UPDATE: we just learned that we can travel for a longer period of time. So, we need to reassign the `number_of_weeks` variable equal to `5`." |
116 | 118 | ]
|
117 | 119 | },
|
118 | 120 | {
|
119 | 121 | "cell_type": "code",
|
120 |
| - "execution_count": null, |
| 122 | + "execution_count": 5, |
121 | 123 | "metadata": {
|
122 | 124 | "collapsed": true
|
123 | 125 | },
|
|
144 | 146 | "cell_type": "markdown",
|
145 | 147 | "metadata": {},
|
146 | 148 | "source": [
|
147 |
| - "Great! In this lab, you were able to get a sense how to store information in variables through assignment and reassignment." |
| 149 | + "Great! In this lab, we were able to get a sense how to store information in variables through assignment and reassignment." |
148 | 150 | ]
|
149 | 151 | }
|
150 | 152 | ],
|
151 | 153 | "metadata": {
|
152 | 154 | "kernelspec": {
|
153 |
| - "display_name": "Python 3", |
| 155 | + "display_name": "Python 2", |
154 | 156 | "language": "python",
|
155 |
| - "name": "python3" |
| 157 | + "name": "python2" |
156 | 158 | },
|
157 | 159 | "language_info": {
|
158 | 160 | "codemirror_mode": {
|
159 | 161 | "name": "ipython",
|
160 |
| - "version": 3 |
| 162 | + "version": 2 |
161 | 163 | },
|
162 | 164 | "file_extension": ".py",
|
163 | 165 | "mimetype": "text/x-python",
|
164 | 166 | "name": "python",
|
165 | 167 | "nbconvert_exporter": "python",
|
166 |
| - "pygments_lexer": "ipython3", |
167 |
| - "version": "3.6.1" |
| 168 | + "pygments_lexer": "ipython2", |
| 169 | + "version": "2.7.14" |
168 | 170 | }
|
169 | 171 | },
|
170 | 172 | "nbformat": 4,
|
|
0 commit comments