title: Using docx python library, how to apply color and font size simultaneously
body: <p>I am writing to an .docx file using python docx library. I want to prespecify the font size and color of a paricular sentence. My problem is that I am not able to do it simultaneously. Let me illustrate -</p>
  
  <pre><code>from docx import Document        
  from docx.shared import Pt       #Helps to specify font size
  from docx.shared import RGBColor #Helps to specify font Color
  document=Document()              #Instantiation
  p=document.add_heading(level=0)
  p.add_run('I want this sentence colored red with fontsize=22').font.size=Pt(22)  #Specifies fontsize 22
  p.add_run('This line gets colored red').font.color.rgb=RGBColor(255,0,0)    #Specifies RED color
  document.save('path/file.docx')
  </code></pre>
  
  <p>Result: <a href="https://i.stack.imgur.com/E77g7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E77g7.png" alt="enter image description here"></a></p>
  
  <p>I am very well aware that I am setting the color <code>Red</code> to the second sentence, and since there is an <code>=</code> before <code>Pt(22)</code> and <code>RGBColor(255,00)</code> so I cannot apply <code>fontsize</code> and <code>color</code> simultaneously</p>
  
  <p>Is there a way to apply both attributes simultaneously? </p>
  
  <p>Editted: I want the line <code>I want this sentence colored red with fontsize=22</code> in Red color.</p>