Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

In this exercise 2

First line coding need to creating set that is bracket { } to each specific name, behind the name
“ ” contain separated by a colon and comma. The function of this played as a set of code which
is combined.

We need to remove the Jack and his number , so the coding need to be write as phonebook
[‘Jake’]=’93827443’. Function of this for make IDLE to recognize the name will take action after
next row coding.

Next is del(phonebook[‘Jill’]) , to remove phonebook jill , the coding contain del (……….[‘ ‘]).
Del() mean delete the behind statement.

Because of exist comment added Jake into phonebook. To recheck the phonebook for Jake and
Jill. So if statement is needed to use for this exercise, after this, print commend it also need to
comment in the below. So it will completely execute.

You might also like