Postgresql Visual Studio Code Python Getting User Input Using A For Loop