title: Enter Password automatically for Sudo in Python3
body: <p>I want to enter the password automatically for a Password Request by Sudo in this line :-</p>
  <pre><code>os.system(&quot;sudo -S shutdown -r&quot;)
  </code></pre>