when I change my password on Instagram i get an error message code example

Example 1: why wont my phython program get any user input

username= input("Enter your username:  ")
print ("Hello there " + username)

Example 2: how to do auto download when you click on a link

<a href="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" download>download file</a>
var a = document.createElement('a');
a.href = "https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png";
a.download = 'download';

a.click();