PROGRAMMING:Dictionary merging and sorting
The user can input two dictionaries in two lines, and the format refers to the input requirements; Please design the program
Combine two dictionaries into one dictionary. If two dictionaries have the same key, the corresponding value should be added as the new value of the key in the dictionary.
###Input format:
Use two lines to input two data in dictionary format. The data type of key in dictionary is number or character, and the data in dictionary value is number.
###Output format:
Output the merged dictionary data. The dictionary data should be arranged according to the increasing order of keys.
###Input sample 1:
Input 1:
```in
{1:2,3:9,5:2,6:2}
{2:1,6:3,7:9,1:4}
```
###Output sample 1:
Output 1:
```out
{1: 6, 2: 1, 3: 9, 5: 2, 6: 5, 7: 9}
```
###Input sample 2:
Input 2:
```in
{'c':3,'a':4,'n':1}
{'a':3,'c':7,'b':10}
```
###Output sample 2:
Output 2:
```out
{'a': 7, 'b': 10, 'c': 10, 'n': 1}
```
answer:If there is no answer, please comment
Combine two dictionaries into one dictionary. If two dictionaries have the same key, the corresponding value should be added as the new value of the key in the dictionary.
###Input format:
Use two lines to input two data in dictionary format. The data type of key in dictionary is number or character, and the data in dictionary value is number.
###Output format:
Output the merged dictionary data. The dictionary data should be arranged according to the increasing order of keys.
###Input sample 1:
Input 1:
```in
{1:2,3:9,5:2,6:2}
{2:1,6:3,7:9,1:4}
```
###Output sample 1:
Output 1:
```out
{1: 6, 2: 1, 3: 9, 5: 2, 6: 5, 7: 9}
```
###Input sample 2:
Input 2:
```in
{'c':3,'a':4,'n':1}
{'a':3,'c':7,'b':10}
```
###Output sample 2:
Output 2:
```out
{'a': 7, 'b': 10, 'c': 10, 'n': 1}
```
answer:If there is no answer, please comment