Oct-08-2016, 07:51 AM
(Oct-07-2016, 11:05 PM)wavic Wrote: Do it once to append the site url and second time to append the encrypted password.
That would not end up with a list of lists that contains lists of 2 items, the website and the password
That would create a list like this
Output:['website1', 'encryptedpassword1', 'website2', 'encryptedpassword2']
The list should end up looking likeOutput:[['website1', 'encryptedpassword1'], ['website2', 'encryptedpassword2']]
(Oct-07-2016, 10:53 PM)tinabina22 Wrote:The error is because samplePasswordFile is not defined as pointed out by wavic, so define it like wavic showedinput = samplePasswordFile.append([website, encryptedPassword])This is the error code I am getting with it:
Error:input = samplePasswordFile.append([website, encryptedPassword]) NameError: name 'samplePasswordFile' is not defined
samplePasswordFile = []when it does
samplePasswordFile.append([website, encryptedPassword])the result does not need storing in input (which is a built in function so don't use it as a variable name) because it directly alters samplePasswordFile instead of returning an altered list.