title: (Python) automatically put an input
body: <p>I am using Microsoft Azure to create a virtual machine.
  There is an Azure command line</p>
  
  <pre><code>az group delete --name myResourceGroup
  </code></pre>
  
  <p>, which, if I type it, returns </p>
  
  <pre><code>Are you sure you want to perform this operation? (y/n):
  </code></pre>
  
  <p>I want my Python script to automatically put "y" whenever it gets the question from the command line. 
  How can I do this?</p>