Skip to content

Commit bb12f4f

Browse files
committed
update for class
1 parent c27cee2 commit bb12f4f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lectures/01-python/w2-python-exercises.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"source": [
5353
"## Q 2\n",
5454
"\n",
55-
"To iterate over the tuples, where the _i_-th tuple contains _i_-th elements of certain sequences, we can use `zip(*sequences)` function.\n",
55+
"To iterate over the tuples, where the _i_-th tuple contains the _i_-th elements of certain sequences, we can use `zip(*sequences)` function.\n",
5656
"\n",
5757
"We will iterate over two lists, `names` and `age`, and print out the resulting tuples.\n",
5858
"\n",
@@ -78,13 +78,13 @@
7878
"source": [
7979
"## Q 3\n",
8080
"\n",
81-
"The function `enumerate(sequence)` returns tuples containing indecies of objects in the sequence, and the objects. \n",
81+
"The function `enumerate(sequence)` returns tuples containing indicies of objects in the sequence, and the objects. \n",
8282
"\n",
83-
"The `random` module provides tools for working with the random objects. In particular, `random.randint(start, end)` generates a random number not smaller than `start`, and not bigger than `end`.\n",
83+
"The `random` module provides tools for working with the random numbers. In particular, `random.randint(start, end)` generates a random number not smaller than `start`, and not bigger than `end`.\n",
8484
"\n",
8585
" * Generate a list of 10 random numbers from 0 to 9.\n",
8686
" \n",
87-
" * Using the `enumerate(random_list)` function, iterate over the tuples of random numbers and their indecies, and print out *\"Match: NUMBER and INDEX\"* if the random number and its index in the list match."
87+
" * Using the `enumerate(random_list)` function, iterate over the tuples of random numbers and their indicies, and print out *\"Match: NUMBER and INDEX\"* if the random number and its index in the list match."
8888
]
8989
},
9090
{
@@ -449,7 +449,7 @@
449449
"name": "python",
450450
"nbconvert_exporter": "python",
451451
"pygments_lexer": "ipython3",
452-
"version": "3.6.3"
452+
"version": "3.6.4"
453453
}
454454
},
455455
"nbformat": 4,

0 commit comments

Comments
 (0)