Oct-11-2019, 06:48 PM
HI All,
My requirement is little similar to concatenation of two dictionaries,
Source data is:
x = {'field1': 'test1', 'field2': 'test2', 'field3': 'test3'}
y = {'field4': 'test4', 'field5': 'test5', 'field6': 'test6'}
output should be
(
{'field1': 'test1', 'field2': 'test2', 'field3': 'test3'},
{'field4': 'test4', 'field5': 'test5', 'field6': 'test6'}
)
When I checked with online help, I found dictionaries update or merge or concatenation scenarios with below output,
{'field1': 'test1', 'field2': 'test2', 'field3': 'test3','field4': 'test4', 'field5': 'test5', 'field6': 'test6'}
Please suggest me the function or logic to concatenate two dictionaries.
Thanks in Advance.
Regards,
Harish
My requirement is little similar to concatenation of two dictionaries,
Source data is:
x = {'field1': 'test1', 'field2': 'test2', 'field3': 'test3'}
y = {'field4': 'test4', 'field5': 'test5', 'field6': 'test6'}
output should be
(
{'field1': 'test1', 'field2': 'test2', 'field3': 'test3'},
{'field4': 'test4', 'field5': 'test5', 'field6': 'test6'}
)
When I checked with online help, I found dictionaries update or merge or concatenation scenarios with below output,
{'field1': 'test1', 'field2': 'test2', 'field3': 'test3','field4': 'test4', 'field5': 'test5', 'field6': 'test6'}
Please suggest me the function or logic to concatenate two dictionaries.
Thanks in Advance.
Regards,
Harish