Thursday, June 4

How to Add two Dictionaries in Python

You need to first create the two dictionaries 

>>> d1 = {'a':1,'b':2,'c':3} # dictionary 1
>>> d2 = {'d':4,'e':5,'f':6} # dictionary 2

for add two dictionaries you have to use the Exponent operator like below 
          >>> d3 = { **d1, **d2 }


Python Memory Management

Characters in Python Memory Management 

1. Python private heap space
2. Python's Memory Manager
3. Python Interpreter
4. Garbage Collector

                        First of all memory related things are all managed in Python private heap area and data also be stored in here (PHPPS), Only interpreter can access the private heap space ,not possible to access programmers or any else persons.
                                        The Python's Memory Manager will take care to allocation of heap space for objects ,here objects means the data that is presently you created and managed by using python language.
                Garbage Collector are responsible for take back the unused data by internally  applying gc() method .

 Click here to learn more

Are you looking for ......