RE: python 3 error i know the file works in python 2.6

2009-02-05 Thread Andreas Tawn
>#open file and read last names >filename = input('name file') >file = open(filename, 'r') >names_list = file.readlines() >file.close() >#open a file for saving passwords >outfile_name = input('Save passwords') >outfile = open(outfile_name, 'a') > > >#create a password for each name in list >import

python 3 error i know the file works in python 2.6

2009-02-05 Thread garywood
can someone help me please #open file and read last names filename = input('name file') file = open(filename, 'r') names_list = file.readlines() file.close() #open a file for saving passwords outfile_name = input('Save passwords') outfile = open(outfile_name, 'a') #create a password for each n