Dec-12-2019, 03:25 AM
You had this exact same problem in your last post. The answer is still the same. 'websitetodelete' is a string. The items in passwords are lists. You can't delete an item that isn't in the list, so you can't delete a string from a list of lists. You need to delete the [website, password] list, or you need to reconstruct the list, possibly like so:
passwords = [pair for pair in passwords if pair[0] != websitetodelete]
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures