Python cargue un archivo txt y asigne una variable
with open('your_text_file.txt', 'r') as f:
username = f.readline()
password = f.readline()
Dizzy Duck
with open('your_text_file.txt', 'r') as f:
username = f.readline()
password = f.readline()