You are assigning a string to the variable input
in
y_n = input = ("Do you want to save these changes?
y/n
")
input
now has the value of 'Do you want to save these changes?
y/n
'
However, you are also calling the built-in function input
in
linechoice = input("What password do you want to delete?:
")
Consider changing the name of your variable to avoid these conflicts.
Looking at the context of the program, you are probably expecting
y_n = input("Do you want to save these changes?
y/n
")
instead of
y_n = input = ("Do you want to save these changes?
y/n
")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…