Rehman1603 commited on
Commit
2497fb1
1 Parent(s): e9a7c93

Update fileCreator.py

Browse files
Files changed (1) hide show
  1. fileCreator.py +0 -3
fileCreator.py CHANGED
@@ -6,7 +6,6 @@ import random
6
  def get_Options(MCQS ,no):
7
  Options=MCQS.get("questions")[no].get('options')
8
  answer=MCQS.get("questions")[no].get('answer')
9
- random.shuffle(Options)
10
  return Options,answer
11
 
12
  def get_MCQS_Statement(MCQS,i):
@@ -36,7 +35,6 @@ def GenerateMCQSDocument(MCQS):
36
  hdr_cells[0].text = 'Statement'
37
  hdr_cells[1].text = 'A'
38
  hdr_cells[2].text = 'B'
39
- hdr_cells[3].text = 'C'
40
  for i in range(0,3,1):
41
  state=get_MCQS_Statement(MCQS,i)
42
  print(state)
@@ -46,7 +44,6 @@ def GenerateMCQSDocument(MCQS):
46
  row_cells = table.add_row().cells
47
  row_cells[0].text = str(state)
48
  row_cells[1].text = MCqs_Options[0]
49
- row_cells[2].text = MCqs_Options[1]
50
  row_cells[3].text = ans
51
 
52
  document.add_page_break()
 
6
  def get_Options(MCQS ,no):
7
  Options=MCQS.get("questions")[no].get('options')
8
  answer=MCQS.get("questions")[no].get('answer')
 
9
  return Options,answer
10
 
11
  def get_MCQS_Statement(MCQS,i):
 
35
  hdr_cells[0].text = 'Statement'
36
  hdr_cells[1].text = 'A'
37
  hdr_cells[2].text = 'B'
 
38
  for i in range(0,3,1):
39
  state=get_MCQS_Statement(MCQS,i)
40
  print(state)
 
44
  row_cells = table.add_row().cells
45
  row_cells[0].text = str(state)
46
  row_cells[1].text = MCqs_Options[0]
 
47
  row_cells[3].text = ans
48
 
49
  document.add_page_break()