Question: I have a list in python and i need to write the output to csv. list is :

```
>>>final_name[0] 
[['Serbs'], ['Joachim RA'], [''], ['Mr RA'], [''], ['Albanian'], ['Boris Tadic', 'Serbia']]

>>> final_name[1]
 [['Philippine', 'Gloria Macapagal Arroyo', 'Mitag'], ['Anthony Golez'], ['Golez'], [''], ['Golez'], ['']]

```

I need the output in csv as:

```
1 Serbs,Joachim RA,Mr RA,Albanian,...
2 Philippine,Gloria Macapagal,...  

```

I have tried everything, by converting to string,etc...but i am not able to get it done..

How could this be done. thank you

Answer: 
Why?

Because this gives the Operating System a way to securely manage memory.

Why is secure memory management necessary?

Imagine if there was no logical addressing. All processes were given direct access to physical addresses. A multi-process OS runs several different programs simultaneously. Imagine you are editing an important letter in MS Word while listening to music on YouTube on a very recently released browser. The browser is buggy and writes bogus values to a range of physical addresses that were being used by the Word program to store the edits of your letter. All of that information is corrupt!

Highly undesirable situation.

How can the OS prevent this?

Maintain a mapping of physical addresses allocated to each process and make sure one process cannot access the memory allocated to another process!

Clearly, having actual physical addresses exposed to programs is not a good idea. Since memory is then handled totally by the OS, we need an abstraction that we can provide to processes with a simple API that would make it seem that the process was dealing with physical memory, but all allocations would actually be handled by the OS.

Here comes virtual memory!
In execution time binding, the MMU makes a mapping from logical address to physical address because in this type of binding:

**logical address is specifically referred to as virtual address**

The address actually has no meaning because it is there to illusion the user that it has a large memory for its processes. The address actually bear meaning when mapping occurs and they get some real addresses which are present in physical memory.

Also I would like to mention that the base register and limit register are loaded by executing privileged instructions and privileged instructions are executed in kernel mode and only operating system has access to kernel mode and therefore CPU cannot directly access the registers.

So first the CPU will generate the logical address then the MMU of Operating system will take over and do the mapping.