In some languages, you can join objetos/array
to one.
For example, in PHP, I can join multiple arrays
like this:
$userInfo = ['name' => 'Wallace']
$jobInfo = ['job' => 'Developer']
$ageInfo = ['age' => '26']
$info = array_merge($userInfo, $jobInfo, $ageInfo)
This would return:
['name' => 'Wallace', 'job' => 'Developer', 'age' => '26']
What about Python? How do I?
If I have the following dictionaries, how can I merge them into one?
a = {"A" : 1}
b = {"B" : 2}
c = {"C": 3}
Note : I thought about using for
already, but I asked the question to find a simpler solution than that.