mirror of https://github.com/01-edu/public.git
docs(merge_two): add extra line at EOF and more details about the type of values
This commit is contained in:
parent
7e5a55eb5e
commit
937c38f0bd
|
@ -6,6 +6,7 @@ One very useful data structure in Python are the dictionaries, in this exercise
|
|||
|
||||
Create a file `merge_two.py` which will have a function named `merge_two()`. This function will accept one dictionary.
|
||||
It will prompt the user to create a new dictionary asking for keys and values.
|
||||
The function will always convert the `values` into integers.
|
||||
|
||||
As a return it will create a third one which will be the merge of the two dictionaries and return it as a serialized JSON string.
|
||||
|
||||
|
@ -70,4 +71,4 @@ $
|
|||
|
||||
- [Merging dictionaries in Python](https://www.geeksforgeeks.org/python-merging-two-dictionaries/)
|
||||
- [JSON library in Python](https://docs.python.org/3/library/json.html)
|
||||
- [Function input() in Python](https://www.w3schools.com/python/ref_func_input.asp)
|
||||
- [Function input() in Python](https://www.w3schools.com/python/ref_func_input.asp)
|
||||
|
|
Loading…
Reference in New Issue