title: To convert MCQ's from eiken test format to gift format - PYTHON
body: <p>I'm trying to convert a text file with MCQ's [Question + Options {A,B,C,D}] in eiken format to gift format.</p>
  
  <p><strong>Level 1 - Below is the foresaid Eiken Format file:</strong></p>
  
  <p>Which of the following statements are TRUE about the .NET CLR?</p>
  
  <ol>
  <li>It   provides   a   language-neutral   development   &amp;   execution
  environment. </li>
  <li>It ensures that an application would not be able to
  access memory that it is not authorized to access. </li>
  <li>It provides services to run "managed" applications. The resources are garbage collected. </li>
  <li>It provides services to run "unmanaged" applications.</li>
  </ol>
  
  <p>A. Only 1 and 2 <br>
  B. Only 1, 2 and 4 <br>
  C. 1, 2, 3, 4 <br>
  D. Only 4 and 5 <br>
  E. Only 3 and 4 <br> <br>
  ANSWER: C</p>
  
  <p><strong>Level 2 - The required format which is needed so as to obtain GIFT format, is as follows:</strong></p>
  
  <p>Which of the following statements are TRUE about the .NET CLR? <br> <br>
  It   provides   a   language-neutral   development   &amp;   execution environment.<br>
  It ensures that an application would not be able to access memory that it is not authorized to access.<br>
  It provides services to run "managed" applications.<br>
  The resources are garbage collected.<br>
  It provides services to run "unmanaged" applications.<br><br>
   Only 1 and 2<br>
   Only 1, 2 and 4<br>
   *1, 2, 3, 4<br>
   Only 4 and 5<br>
   Only 3 and 4<br><br></p>
  
  <p><em>The above format is needed to be given as input to a tool which shall give me the data in gift format.</em></p>
  
  <p><strong>Level 3 - The gift format is as follows, which the tool shall do for me if I get the above format:</strong></p>
  
  <p>::1::Which of the following statements are TRUE about the .NET CLR? provides language-neutral development &amp; execution environment.It ensures that an application would not be able to access memory that it is not authorized to access.It provides services to run "managed" applications.The resources are garbage collected.It provides services to run "unmanaged" applications. { 
  <br>    ~Only 1 and 2
  <br>    ~Only 1, 2 and 4
  <br>    =1, 2, 3, 4
  <br>    ~Only 4 and 5
  <br>    ~Only 3 and 4 <br>
  }</p>
  
  <p>Any help would be highly appreciated, so as to convert my data from Level 1 to Level 2. As the tool which I have can help me to get from Level 2 to Level 3. </p>
  
  <p>Thanks :)</p>