diff --git a/readme4-6.md b/readme4-6.md index 584f065..ae40f09 100644 --- a/readme4-6.md +++ b/readme4-6.md @@ -1113,4 +1113,4 @@ del fruits nordic_countries = ('Denmark', 'Finland','Iceland', 'Norway', 'Sweden') ``` -[<< Part 2](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/readme4-6.md)[Part 3 >>](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/readme7-12.md) \ No newline at end of file +[<< Part 2](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/readme4-6.md) | [Part 3 >>](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/readme7-12.md) \ No newline at end of file diff --git a/readme7-9.md b/readme7-9.md index a63e3f9..515fac8 100644 --- a/readme7-9.md +++ b/readme7-9.md @@ -28,7 +28,7 @@ - [Checking a key in a dictionary](#checking-a-key-in-a-dictionary) - [Removing key items from dictionary](#removing-key-items-from-dictionary) - [Changing dictionary to list items](#changing-dictionary-to-list-items) - - [Changing dictionary to list items](#changing-dictionary-to-list-items-1) + - [Clearing dictionary list items](#clearing-dictionary-list-items) - [Deleting dictionary](#deleting-dictionary) - [Copy a dictionary](#copy-a-dictionary) - [Getting dictionary keys as list](#getting-dictionary-keys-as-list) @@ -527,7 +527,7 @@ del person['is_married'] # Remove the is married ### Changing dictionary to list items -The \*items() method change a dictionary to list of tuples. +The *items()* method change a dictionary to list of tuples. ```py # syntax @@ -535,7 +535,7 @@ dct = {'key1':'item1', 'key2':'item2', 'key3':'item3', 'key4':'item4'} print(dct.items()) # dict_items([('key1', 'item1'), ('key2', 'item2'), ('key3', 'item3'), ('key4', 'item4')]) ``` -### Changing dictionary to list items +### Clearing dictionary list items If we don't want the items in a dictionary we can clear them using _clear()_ methods @@ -600,5 +600,5 @@ print(values) # dict_values(['item1', 'item2', 'item3', 'item4']) 10. Delete one of the item in the dictionary 11. Delete the dictionary completely -[<< Part 1 ](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/readme.md)| [Part 3 >>](#) +[<< Part 1 ](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/readme.md) | [Part 3 >>](#) *** \ No newline at end of file