Professional Documents
Culture Documents
Week 5 Class 1: Student Worksheet
Week 5 Class 1: Student Worksheet
Student Worksheet
I. Before you read
A. Keywords
Look at the Word Cloud of the most frequent words in the text
you are going to read.
1. Which words you do not know? Write down the unknown words and
look them up in a dictionary.
Unknown words:
A. Predicting
3. Vocabulary. Read the following words and match them with the
correct meaning.
A. Scanning
B. Skimming
2. Skim the text and match the sentence in the correct order.
The main operations on a dictionary are storing a value with some key and
extracting the value given the key. It is also possible to delete a key:value pair
with del. If you store using a key that is already in use, the old value associated
with that key is forgotten. It is an error to extract a value using a non-existent key.
>>>
>>> tel = {'jack': 4098, 'sape': 4139}
>>> tel['guido'] = 4127
>>> tel
{'jack': 4098, 'sape': 4139, 'guido': 4127}
>>> tel['jack']
4098
>>> del tel['sape']
>>> tel['irv'] = 4127
>>> tel
{'jack': 4098, 'guido': 4127, 'irv': 4127}
>>> list(tel)
['jack', 'guido', 'irv']
>>> sorted(tel)
['guido', 'irv', 'jack']
>>> 'guido' in tel
True
>>> 'jack' not in tel
False
>>>
>>> dict([('sape', 4139), ('guido', 4127), ('jack', 4098)])
{'sape': 4139, 'guido': 4127, 'jack': 4098}
>>>
>>> {x: x**2 for x in (2, 4, 6)}
{2: 4, 4: 16, 6: 36}
When the keys are simple strings, it is sometimes easier to specify pairs using
keyword arguments:
>>>
>>> dict(sape=4139, guido=4127, jack=4098)
{'sape': 4139, 'guido': 4127, 'jack': 4098}
III. After you read
Vocabulary
1. The Word Cloud below shows the most frequent words in the text about
Python. Find them and highlight them in the text.
5
2. Look up the unknown words from the Word Cloud.
https://www.wordreference.com/
Understanding my process
1. Think about a recommendation to read Python of texts and share this idea
with your classmates.
2. Read the following statements and mark Yes or No taking into account
your learning process:
Statements Yes No
1. I can use strategies to understand the unknown
words
2 I can scan a text to find specific information
3. Vocabulary. Read the following words and match them with the
correct meaning.
Skimming
1. Skim the text and match the sentence in the correct order.