# a=["this" "isa" "page"]
# for i ,j in enumerate(a):
#     tlist=["is","a"]
#     del a[i]
#     for ix in range(len(tlist)):
#         a.insert(i+ix,tlist[ix])
# print(a)

from docx import *

document = Document('sample.docx')
bolds=[]
italics=[]
for para in document.paragraphs:
    for run in para.runs:
        if run.italic :
            italics.append(run.text)
        if run.bold :
            bolds.append(run.text)

boltalic_Dict={'bold_phrases':bolds,
              'italic_phrases':italics}


7c3a26d0b20da816cc9235ad90d1becd1268efbb
<mask token>

<mask token>
for para in document.paragraphs:
    for run in para.runs:
        if run.italic:
            italics.append(run.text)
        if run.bold:
            bolds.append(run.text)
<mask token>

<mask token>
document = Document('sample.docx')
bolds = []
italics = []
for para in document.paragraphs:
    for run in para.runs:
        if run.italic:
            italics.append(run.text)
        if run.bold:
            bolds.append(run.text)
boltalic_Dict = {'bold_phrases': bolds, 'italic_phrases': italics}

from docx import *
document = Document('sample.docx')
bolds = []
italics = []
for para in document.paragraphs:
    for run in para.runs:
        if run.italic:
            italics.append(run.text)
        if run.bold:
            bolds.append(run.text)
boltalic_Dict = {'bold_phrases': bolds, 'italic_phrases': italics}

# a=["this" "isa" "page"]
# for i ,j in enumerate(a):
#     tlist=["is","a"]
#     del a[i]
#     for ix in range(len(tlist)):
#         a.insert(i+ix,tlist[ix])
# print(a)

from docx import *

document = Document('sample.docx')
bolds=[]
italics=[]
for para in document.paragraphs:
    for run in para.runs:
        if run.italic :
            italics.append(run.text)
        if run.bold :
            bolds.append(run.text)

boltalic_Dict={'bold_phrases':bolds,
              'italic_phrases':italics}

